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:
parent
4f683383bb
commit
2dee4ab20e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue