Skip to content

Conversation

@filliravaz
Copy link
Member

Don't merge for now, waiting for an update to MCSS internal API

Server object is not finished, missing some methods for scheduler/other.
TODO: Set getStatus and getKeepOnline to return enums instead of an int, currently missing API documentation to do so
Recursing over the single command execution method
Added getServers() method, returns ArrayList
 - Added parsing of JSON response (took so long)
 - Added error handling
 - Added iterator on the API response
ServerStatus can be Online, Offline, Filter, None
Used for getServerCount, can be used for Server.getStatus if values get confirmed
Added Scheduler object
Added Task object
Added TaskType Enum
Added InvalidTaskDetails exception (thrown when API returns 409)
Unable to SET repeat for now, blocked by API
@filliravaz
Copy link
Member Author

Next commit will be a big one, major rewrite of the server class.

@filliravaz
Copy link
Member Author

FINAL STRETCH
Just missing the new task "playerRequirement" values for the tasks (added recently) then V1 is READY!

As a note, this won't technically be V1, but I'll use the same version number of the base MCSS api for the wrapper version, to keep stuff simple ya know.

@filliravaz filliravaz merged commit ddf405c into main Nov 1, 2022
@filliravaz
Copy link
Member Author

@all-contributors
please add @vaio2005 for code example ideas maintenance
please add @LostAndDead for mentoring ideas review

@allcontributors
Copy link
Contributor

@vaio2005

I've put up a pull request to add @vaio2005! 🎉

I've put up a pull request to add @LostAndDead! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants