mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
Don't delete the first char of the command passed
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -66,7 +66,7 @@ public final class SimpleCommandMap implements CommandMap {
|
|||||||
*/
|
*/
|
||||||
public boolean dispatch(CommandSender sender, String commandLine) {
|
public boolean dispatch(CommandSender sender, String commandLine) {
|
||||||
String[] args = commandLine.split(" ");
|
String[] args = commandLine.split(" ");
|
||||||
String sentCommandLabel = args[0].substring(1);
|
String sentCommandLabel = args[0];
|
||||||
|
|
||||||
args = Arrays.copyOfRange(args, 1, args.length);
|
args = Arrays.copyOfRange(args, 1, args.length);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user