mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
@@ -72,6 +72,12 @@ public final class SimpleCommandMap implements CommandMap {
|
||||
|
||||
Command target = knownCommands.get(sentCommandLabel);
|
||||
boolean isRegisteredCommand = (target != null);
|
||||
if (isRegisteredCommand) {
|
||||
target.execute(sender, sentCommandLabel, args);
|
||||
return true;
|
||||
}
|
||||
target = knownCommands.get(sentCommandLabel.substring(1));
|
||||
isRegisteredCommand = (target != null);
|
||||
if (isRegisteredCommand) {
|
||||
target.execute(sender, sentCommandLabel, args);
|
||||
}
|
||||
|
Reference in New Issue
Block a user