Skip to content

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

external command

commanddescription
/datapackControls the loaded data pack.
/debugStart or end a debugging session.
/reloadReload the loot table, advancement and functions from the hard disk.

server operation

commanddescriptionsyntax
/banAdd player to ban list.ban <玩家名|UUID> [<理由…>]
/ban-ipAdd the IP address to the banned list.ban-ip <玩家名|IP地址> [<理由…>]
/banlistShow ban list.banlist ips
banlist players
/deopRevoke the player's administrator rights.deop <玩家>
/kickKick the player out of the server.kick <玩家名|目标选择器> [<原因>]
/listList the players in the server.list [uuids]
/opGrant the player administrator rights.op <玩家名|目标选择器>
/pardonRemove player ban items from the ban list.pardon <玩家名>
/pardon-ipRemove IP banned items from the banned list.pardon-ip <IP地址>
/publishOpen the single-player world to the LAN.publish [<端口(0~65536)>]
/save-allSave server world state to hard disk.save-all [flush]
flush:服务器会立即保存所有的区块数据
/save-offTurn off server automatic saving.save-off
/save-onTurn on server automatic saving.save-on
/setidletimeoutSet the delay for the player to be kicked out if there is no operation.setidletimeout <空闲分钟数0~2147483647>
/stopClose the server.stop
/transferTransfer the player to another server.transfer <hostname> [<port>] [<players>]
/whitelistManage server whitelist.whitelist add <玩家>
whitelist remove <玩家>
whitelist <list|off|on|reload>

Powered by VitePress and GitHub Pages