mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
fallback code for command lookup
This commit is contained in:
parent
01988e8f6b
commit
00d4e1a2e0
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue