public interface IServer
修飾子とタイプ | メソッドと説明 |
---|---|
int |
getCurrentPlayerCount()
Returns the number of players currently on the server.
|
java.lang.String |
getFolderName() |
java.lang.String |
getHostname()
Returns the server's hostname.
|
int |
getMaxPlayers()
Returns the maximum number of players allowed on the server.
|
java.lang.String |
getMinecraftVersion()
Returns the server's Minecraft version as string.
|
java.lang.String |
getMotd()
Returns the server message of the day
|
java.lang.String[] |
getOnlinePlayerNames()
Returns an array of the usernames of all the connected players.
|
java.lang.String |
getPlugins()
Used by RCon's Query in the form of "MajorServerMod 1.2.3: MyPlugin 1.3; AnotherPlugin 2.1; AndSoForth 1.0".
|
int |
getPort()
Never used, but "getServerPort" is already taken.
|
ServerProperties |
getServerProperties() |
java.lang.String |
handleRConCommand(java.lang.String command)
Handle a command received by an RCon instance
|
boolean |
isDebuggingEnabled()
Returns true if debugging is enabled, false otherwise.
|
void |
logDebug(java.lang.String msg)
If isDebuggingEnabled(), logs the message with a level of INFO.
|
void |
logInfo(java.lang.String msg)
Logs the message with a level of INFO.
|
void |
logSevere(java.lang.String msg)
Logs the error message with a level of SEVERE.
|
void |
logWarning(java.lang.String msg)
Logs the message with a level of WARN.
|
ServerProperties getServerProperties()
java.lang.String getHostname()
int getPort()
java.lang.String getMotd()
java.lang.String getMinecraftVersion()
int getCurrentPlayerCount()
int getMaxPlayers()
java.lang.String[] getOnlinePlayerNames()
java.lang.String getFolderName()
java.lang.String getPlugins()
java.lang.String handleRConCommand(java.lang.String command)
boolean isDebuggingEnabled()
void logInfo(java.lang.String msg)
void logWarning(java.lang.String msg)
void logSevere(java.lang.String msg)
void logDebug(java.lang.String msg)