Makes a player an operator
/op add PlayerName
Gives a player operator permission. To take it back, type /op remove PlayerName; there is no separate /deop command.
Server management is also done from chat or the server console. /op add makes a player an operator, while /kick and /ban keep troublemakers out. To open the server only to people you know, turn on the whitelist and add players one by one.
Most codes here need cheats turned on first. See the section on how to open the console.
/op self
/op add PlayerName
Gives a player operator permission. To take it back, type /op remove PlayerName; there is no separate /deop command.
/kick PlayerName
Disconnects the player. They can join again; for a lasting block, use /ban.
/ban PlayerName
Stops the player from joining the server. To lift the ban, type /unban PlayerName.
/whitelist enable
Only players on the list can join the server. To add someone to the list, type /whitelist add PlayerName.
/who
Shows who is on the server right now.
/say Server restarting in 5 minutes
Broadcasts your message to all players.
/stop
Shuts down the server.