Skip to content

(1.19.1) Commands are now case-sensitive #8223

@luizsusin

Description

@luizsusin

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

  1. Run any command from the in-game chat in a case-sensitive way (something like /GaMeMode should do it);
  2. 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

No one assigned

    Labels

    resolution: works as intendedWorking as it should / expected totype: bugSomething doesn't work as it was intended to.upstream: bukkitIssues exists in Bukkit and/or CraftBukkit.version: 1.19Game version 1.19

    Type

    Projects

    Status

    Invalid

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions