mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
committed by
chickeneer
parent
7292c50f4a
commit
b175f092d8
@@ -275,10 +275,9 @@ public class BukkitCommandManager extends CommandManager<
|
||||
}
|
||||
|
||||
public void unregisterCommands() {
|
||||
for (Map.Entry<String, BukkitRootCommand> entry : registeredCommands.entrySet()) {
|
||||
unregisterCommand(entry.getValue());
|
||||
while (!registeredCommands.isEmpty()) {
|
||||
unregisterCommand(registeredCommands.values().toArray(new BukkitRootCommand[]{})[0]);
|
||||
}
|
||||
this.registeredCommands.clear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user