-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Expected behavior
The Paper/Spigot command dispatcher should force commands to run as lower case.
Observed/Actual behavior
The command dispatcher is dispatching commands in the very same way they're inputted.
Steps/models to reproduce
- Run any command from the in-game chat in a case-sensitive way (something like /GaMeMode should do it);
- See the error message.
Important: Sending commands through the console will work, regardless the case pattern.
Plugin and Datapack List
It's not really relevant ATM, but I'll provide if necessary.
Paper version
git-Paper-101
Other
First of all, yes, I'm aware that Mojang possibly considers commands to be case-sensitive (as stated in this JIRA Issue).
This might also be an upstream issue (Spigot, possibly).
However, this behaviour has, for years, not been this way on Paper/Spigot.
It also doesn't really makes sense to me why two commands would be registered in different case patterns (in the same plugin or not).
For instance, /gamemode and /Gamemode should run exactly the same way, as they state the same thing (it's the same command). This problem is even worse when using short commands, like /g and /G, which can happen easily if you happen to leave your caps lock on accidentally.
Mojang has never made their server to be used with external commands, which helps explain why they actually don't care about case sensitiveness.
Although this is not really a bug, forcing commands to be lower-case seems so much like the appropriate way for the command dispatcher to work.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status