Disable the plugin correctly

I stared at this for a moment, and then thought to myself - this is
probably the correct way to disable a plugin.
This commit is contained in:
RoboMWM 2016-10-05 00:06:17 -07:00
parent 10ae47ec14
commit 7a35825386

View File

@ -779,7 +779,7 @@ public class GriefPrevention extends JavaPlugin
this.getLogger().severe("If you are on a shared host, tell your hosting provider to update, as Java 7 is End of Life."); this.getLogger().severe("If you are on a shared host, tell your hosting provider to update, as Java 7 is End of Life.");
this.getLogger().severe("If they refuse, I'd suggesting switching to a more secure and responsive host."); this.getLogger().severe("If they refuse, I'd suggesting switching to a more secure and responsive host.");
this.getLogger().severe("But if you truly have absolutely no choice, then please download the Java 7 version of GriefPrevention."); this.getLogger().severe("But if you truly have absolutely no choice, then please download the Java 7 version of GriefPrevention.");
this.onDisable(); getServer().getPluginManager().disablePlugin(this);
return; return;
} }