Skip to content

Commit

Permalink
resolves aikar#214
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Jun 6, 2019
1 parent 7292c50 commit e7d9885
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}


Expand Down

0 comments on commit e7d9885

Please sign in to comment.