mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
Commands should not be case-sensitive.
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user