From 7a3582538688b58f4ee560117c2eb1285cfd95a5 Mon Sep 17 00:00:00 2001 From: RoboMWM Date: Wed, 5 Oct 2016 00:06:17 -0700 Subject: [PATCH] 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. --- src/me/ryanhamshire/GriefPrevention/GriefPrevention.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java index 5fe1a9f..cfe4af5 100644 --- a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java +++ b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java @@ -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 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.onDisable(); + getServer().getPluginManager().disablePlugin(this); return; }