1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-18 11:22:15 +01:00

Commands should not be case-sensitive.

By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
Bukkit/Spigot 2011-02-06 21:56:38 -05:00
parent 4f683383bb
commit 2dee4ab20e

View file

@ -67,7 +67,7 @@ public final class SimpleCommandMap implements CommandMap {
*/
public boolean dispatch(CommandSender sender, String commandLine) {
String[] args = commandLine.split(" ");
String sentCommandLabel = args[0];
String sentCommandLabel = args[0].toLowerCase();
args = Arrays.copyOfRange(args, 1, args.length);