From ca8c5aeb86d04dfe943d32c5527cd922aed20462 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 14 Aug 2018 17:20:48 +1200 Subject: [PATCH] Disable the plugin instead of just returning, add a missing Logger --- src/me/libraryaddict/disguise/LibsDisguises.java | 2 ++ src/me/libraryaddict/disguise/disguisetypes/MetaIndex.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index fd3d41ec..61c83844 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -48,11 +48,13 @@ public class LibsDisguises extends JavaPlugin { getLogger().severe("This will be released free two weeks after all bugs have been fixed!"); getLogger().severe("If you've already purchased the plugin, place the purchased jar inside the " + "Lib's Disguises plugin folder"); + getPluginLoader().disablePlugin(this); return; } } else { getLogger().severe("You're using the wrong version of Lib's Disguises for your server! This is " + "intended for 1.13!"); + getPluginLoader().disablePlugin(this); return; } diff --git a/src/me/libraryaddict/disguise/disguisetypes/MetaIndex.java b/src/me/libraryaddict/disguise/disguisetypes/MetaIndex.java index 9c4309d4..fcc3a20b 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/MetaIndex.java +++ b/src/me/libraryaddict/disguise/disguisetypes/MetaIndex.java @@ -432,7 +432,7 @@ public class MetaIndex { toPrint.sort(String.CASE_INSENSITIVE_ORDER); for (String s : toPrint) { - System.out.println(s); + DisguiseUtilities.getLogger().info(s); } }