The last time joins were updated from the log
Fires whenever a player joins the server
Fires whenever a player leaves the server.
Fires whenever a player or the server sends a message in chat. Includes messages starting with /
Fires whenever a message that cannot be parsed is encountered.
Gets the currently online players
Gets all players who have joined the server
Internal init function
Sends messages in the message queue one by one to prevent the api from concatting 2 messages into 1.
Adds a listener for a single command, can be used when a command can be statically matched.
the command that the listener should be called for, case insensitive
the function which should be called whenever the command is used
Gets the server's lists
Gets the server logs
if true, will get the latest logs, otherwise will returned the cached version.
Gets an overview of the server info
Gets a specific player by name
Returns the current world status, will always make a request to the server.
Removes a listener for a command, if it exists.
the command for which the listener should be removed.
Sends a restart request, if the world is offline no actions will be taken.
Sends the specified message, returns a promise that will reject if the send fails and resolve otherwise.
the message to send
Sets the server's lists and reloads the world lists if required.
WorldLists one or more list to update. If a list is not provided it will not be changed.
a promise which will resolve when the lists have been updated, or throw if an error occurred.
Starts the world, if it is not already started. Will not reject.
Starts the internal chat watcher
Stops the world if it is running. Will not throw.
Stops the internal chat watcher.
Generated using TypeDoc
The first time joins were updated from chat It is assumed that all joins from this point onwards have been counted.