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:
parent
10ae47ec14
commit
7a35825386
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user