MCServer
导入相关包
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
已实现的接口
MCServer implements the following interfaces. That means all methods defined in these interfaces are also available in MCServer
- AutoCloseable
方法
Runs a command.
Returns The success value of the command, or 0 if an exception occurred. Note: Some commands' success value is 0
Return Type: int
let a player send a command
Returns The success value of the command, or 0 if an exception occurred. Note: Some commands' success value is 0
Return Type: int
Get a server world instance based on resource location Throws an exception if the world location is unknown
Return Type: MCServerWorld