Disable the plugin instead of just returning, add a missing Logger
This commit is contained in:
parent
f3d8a18e11
commit
ca8c5aeb86
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user