Fix lookupname not being removed when unloading a plugin

This commit is contained in:
Frank van der Heijden 2020-06-03 13:40:11 +02:00
parent 0b4548ee28
commit beca8d4c19
No known key found for this signature in database
GPG key ID: 26DA56488D314D11
2 changed files with 13 additions and 3 deletions

View file

@ -46,6 +46,7 @@ public class PluginManager {
try {
Bukkit.getPluginManager().disablePlugin(plugin);
RSimplePluginManager.getPlugins(Bukkit.getPluginManager()).remove(plugin);
RSimplePluginManager.removeLookupName(Bukkit.getPluginManager(), plugin.getName());
} catch (Exception ex) {
ex.printStackTrace();
return Result.ERROR;