mojira.dev
MC-121636

Server commands available in singleplayer with weird/bad effects

Exactly as the title states, causing bugs like MC-121629. Will continually update with consequences of all server commands. Commands of note are listed:

  • /kick: Exits the world and returns the player to the multiplayer menu.

  • /ban: Exits the world and returns the player to the multiplayer menu. Does not prevent future access to the world.

  • /deop: Appears to deop the player and restricts access to F3+N, but the player can still run commands. Running /op yields that the player is "already an operator." Access to F3+N is regranted upon a reload Thanks to @unknown.

  • /list: Prints the player alone as expected. (this may be WAI, as it has no reason to be limited to multiplayer)

  • /save-all: Saves the game as expected.

  • /setidletimeout: Doesn't appear to do anything (I don't think ops get kicked anyway).

  • /stop: Exits the world and returns the player to the multiplayer menu (a la MC-45602).

Linked issues

MC-226674 You can use /kick in singleplayer worlds Resolved MC-121629 If you kick yourself with /kick in singleplayer, the game freezes Resolved MC-121659 Clint freezes after being kick from a local world Resolved MC-121717 Kicking yourself in Singleplayer freezes the game Resolved MC-121840 Deop your self in singleplayer Resolved

Comments 9

/pardon:
1.13-snapshot: Console outputs "Nothing changed, the player isn't banned" when trying to unban a user that was /ban ned.
1.12: Console outputs "Unknown command".

Also, this bug doesn't seem to work with /broadcast .

EDIT 2: I'm using Windows 7 for this.

@James Mills Of course it outputs "Unknown command" in 1.12, this bug says that these command become available in 1.13. Also, pretty sure /broadcast isn't a command.*

*I checked, and it was in Classic, but it was replaced with /say.

I tried /ban on me and it said banned off singleplayer world and server quits and i came back to my world none banned,

But i try on /ban on sp lan player now another player cant join

and i /pardon that player banned and player join again!

Still an issue in 18w21a, if I do /kick on myself on my LAN server, the game freezes.

/kick on a lan server should probably be enabled (probably). However the issues with freezing are supposed to be fixed; at least, they were when I tested MC-92255... hm.

/setidletimeout 1000000 kicks the player from the world because of idle time out.

I can't run any of the commands, but I can run /kick

tryashtar

michael

Confirmed

command, multiplayer, server, singleplayer

Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w48a, , Minecraft 18w08b, Minecraft 18w10d, Minecraft 18w11a, Minecraft 18w14b, Minecraft 18w16a

Minecraft 18w19a

Retrieved