mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
Fixed logic issue toggling plugins
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
e125065dbd
commit
63595772bd
1 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ public final class JavaPluginLoader implements PluginLoader {
|
|||
throw new IllegalArgumentException("Plugin is not associated with this PluginLoader");
|
||||
}
|
||||
|
||||
if (plugin.isEnabled()) {
|
||||
if (!plugin.isEnabled()) {
|
||||
JavaPlugin jPlugin = (JavaPlugin)plugin;
|
||||
|
||||
server.getPluginManager().callEvent(new PluginEvent(Event.Type.PLUGIN_ENABLE, plugin));
|
||||
|
@ -158,7 +158,7 @@ public final class JavaPluginLoader implements PluginLoader {
|
|||
throw new IllegalArgumentException("Plugin is not associated with this PluginLoader");
|
||||
}
|
||||
|
||||
if (!plugin.isEnabled()) {
|
||||
if (plugin.isEnabled()) {
|
||||
JavaPlugin jPlugin = (JavaPlugin)plugin;
|
||||
|
||||
server.getPluginManager().callEvent(new PluginEvent(Event.Type.PLUGIN_DISABLE, plugin));
|
||||
|
|
Loading…
Reference in a new issue