MinecraftServer
Represents the Minecraft Server.
runCommand(command: String) -> CommandResult
Runs the command command
.
setPVPEnabled(pvp_enabled: Boolean) -> Null
Sets pvp to be enabled according to pvp_enabled
.
setDifficultyLocked(difficulty_locked: Boolean) -> Null
Sets the difficulty to be locked according to difficulty_locked
.
isPVPEnabled() -> Boolean
Returns whether pvp is enabled.
isNetherEnabled() -> Boolean
Returns whether the nether is enabled.
isFlightEnabled() -> Boolean
Returns whether flight is enabled.
getServerPort() -> Integer
Returns the port of the server.
getServerIP() -> String
Returns the IP of the server.
isHardcore() -> Boolean
Returns whether the server is hardcore.
areCommandBlocksEnabled() -> Boolean
Returns whether command blocks are enabled.
setDifficulty(difficulty: Difficulty) -> Null
Sets the difficulty to difficuly
.
isModInstalled(modID: String) -> Boolean
Returns whether modID
is installed.