You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plugin.getLogger().log(Level.WARNING, "Something went wrong while trying to unregister command(name: {0}) from server!", name);
214
+
}
215
+
216
+
this.commands.remove(command);
217
+
newHashMap<>(this.subCommands).keySet().stream().filter(subCmd -> subCmd.name().startsWith(name)).forEach(this.subCommands::remove); // Copy elements to new map to avoid modification exception
218
+
});
219
+
}
220
+
221
+
/**
222
+
* Unregisters commands and tab completers within the given instance class.
223
+
*
224
+
* @param instance the object using to get target class to unregister commands.
0 commit comments