Also clean commands and recipes when unloading
This commit is contained in:
parent
94e4693b5e
commit
ff1bfc2514
1 changed files with 3 additions and 0 deletions
|
|
@ -123,6 +123,9 @@ public class BukkitPluginManager extends AbstractPluginManager<Plugin, BukkitPlu
|
|||
String pluginId = getPluginId(plugin);
|
||||
Bukkit.getPluginManager().callEvent(new BukkitPluginUnloadEvent(plugin, PluginEvent.Stage.PRE));
|
||||
|
||||
RCraftingManager.removeRecipesFor(plugin);
|
||||
unregisterCommands(plugin);
|
||||
|
||||
List<Closeable> closeables = new ArrayList<>();
|
||||
try {
|
||||
RSimplePluginManager.getPlugins(Bukkit.getPluginManager()).remove(plugin);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue