Released 9.8.3, commands disabled for players on non-premium versions

This commit is contained in:
libraryaddict
2019-11-03 18:07:12 +13:00
parent 2f109de685
commit 9df128db6f
11 changed files with 75 additions and 13 deletions

View File

@@ -56,17 +56,14 @@ public class LibsDisguises extends JavaPlugin {
LibsPremium.check(getDescription().getVersion(), getFile());
if (!LibsPremium.isPremium()) {
getLogger().severe("You must purchase the plugin to use support for 1.14!");
getLogger().severe("This will be released free once the plugin is stable!");
getLogger().severe("If you've already purchased the plugin, place the purchased jar inside the " +
"Lib's Disguises plugin folder");
getPluginLoader().disablePlugin(this);
return;
getLogger()
.info("You are running the free version, commands limited to non-players (Console, Command " +
"Blocks)");
}
if (!ReflectionManager.getMinecraftVersion().startsWith("1.14")) {
if (!ReflectionManager.getMinecraftVersion().startsWith("1.14.4")) {
getLogger().severe("You're using the wrong version of Lib's Disguises for your server! This is " +
"intended for 1.14!");
"intended for 1.14.4!");
getPluginLoader().disablePlugin(this);
return;
}