Disable the plugin instead of just returning, add a missing Logger

This commit is contained in:
libraryaddict 2018-08-14 17:20:48 +12:00
parent f3d8a18e11
commit ca8c5aeb86
2 changed files with 3 additions and 1 deletions

View File

@ -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("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 " + getLogger().severe("If you've already purchased the plugin, place the purchased jar inside the " +
"Lib's Disguises plugin folder"); "Lib's Disguises plugin folder");
getPluginLoader().disablePlugin(this);
return; return;
} }
} else { } else {
getLogger().severe("You're using the wrong version of Lib's Disguises for your server! This is " + getLogger().severe("You're using the wrong version of Lib's Disguises for your server! This is " +
"intended for 1.13!"); "intended for 1.13!");
getPluginLoader().disablePlugin(this);
return; return;
} }

View File

@ -432,7 +432,7 @@ public class MetaIndex<Y> {
toPrint.sort(String.CASE_INSENSITIVE_ORDER); toPrint.sort(String.CASE_INSENSITIVE_ORDER);
for (String s : toPrint) { for (String s : toPrint) {
System.out.println(s); DisguiseUtilities.getLogger().info(s);
} }
} }