Translation notice
This page was translated with machine translation and may contain inaccuracies. If you can help improve it, please open an issue or submit a pull request.
world/server directive
world operation
- Game Mode
- world mode /defaultgamemode
- player mode /gamemode
- Game difficulty /difficulty
- Game Rules /gamerule
- Structure location /locate <structure|biome|poi>
- world seed /seed
- birth point
- world spawn point /setworldspawn
- player spawn point /spawnpoint
- world time /time
- Main world weather /weather
- world border /worldborder
- Force chunk to run /forceload
- Game tick rate /tick
- Stopwatch/stopwatch
external command
| command | description |
|---|---|
| /datapack | Controls the loaded data pack. |
| /debug | Start or end a debugging session. |
| /reload | Reload the loot table, advancement and functions from the hard disk. |
server operation
| command | description | syntax |
|---|---|---|
| /ban | Add player to ban list. | ban <玩家名|UUID> [<理由…>] |
| /ban-ip | Add the IP address to the banned list. | ban-ip <玩家名|IP地址> [<理由…>] |
| /banlist | Show ban list. | banlist ips banlist players |
| /deop | Revoke the player's administrator rights. | deop <玩家> |
| /kick | Kick the player out of the server. | kick <玩家名|目标选择器> [<原因>] |
| /list | List the players in the server. | list [uuids] |
| /op | Grant the player administrator rights. | op <玩家名|目标选择器> |
| /pardon | Remove player ban items from the ban list. | pardon <玩家名> |
| /pardon-ip | Remove IP banned items from the banned list. | pardon-ip <IP地址> |
| /publish | Open the single-player world to the LAN. | publish [<端口(0~65536)>] |
| /save-all | Save server world state to hard disk. | save-all [flush]flush:服务器会立即保存所有的区块数据 |
| /save-off | Turn off server automatic saving. | save-off |
| /save-on | Turn on server automatic saving. | save-on |
| /setidletimeout | Set the delay for the player to be kicked out if there is no operation. | setidletimeout <空闲分钟数0~2147483647> |
| /stop | Close the server. | stop |
| /transfer | Transfer the player to another server. | transfer <hostname> [<port>] [<players>] |
| /whitelist | Manage server whitelist. | whitelist add <玩家>whitelist remove <玩家> whitelist <list|off|on|reload> |