mojira.dev
MC-78920

Incorrect /gamerule syntax (typing only /gamerule doesn't return any error)

The syntax for the /gamerule command is:

/gamerule <rule> [value]

(This syntax can be seen through the /help command.)

But, since typing only /gamerule will return all available gamerules and not any error message, the <rule> field isn't required, so it should be:

/gamerule [rule] [value]

The fix for this bug is simple and only involves changing a string on the language files.

Linked issues

Attachments

Comments 3

Can anyone confirm this report? It's almost 6 months old.

Fixed in some 1.13 snapshot, although the behavior of /gamerule on its own printing available gamerules is now gone. I will create a separate ticket for this.

Bentroen

(Unassigned)

Confirmed

/gamerule, /help, argument, chat, command, display, language, list, message, optional, required, resource, syntax, tag, value

Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.8, Minecraft 15w31c, Minecraft 15w32c, , Minecraft 17w06a, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b

Minecraft 18w03b

Retrieved