mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 21:31:25 +01:00
fallback code for command lookup
By: tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
474817bf11
commit
1899891b6f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user