Skip to content
Permalink
Browse files

resolves #214 (#215)

  • Loading branch information...
NiklasEi authored and chickeneer committed Jun 7, 2019
1 parent 7292c50 commit b175f092d8fa503a86d442dd0f29f390ef838423
Showing with 2 additions and 3 deletions.
  1. +2 −3 bukkit/src/main/java/co/aikar/commands/BukkitCommandManager.java
@@ -275,10 +275,9 @@ public void unregisterCommand(BukkitRootCommand command) {
}

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();
}


0 comments on commit b175f09

Please sign in to comment.
You can’t perform that action at this time.