mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-13 22:21:06 +00:00
Add missing return statement to stop the initialization of the plugin if version is not supported
This commit is contained in:
parent
8b0bd54a1d
commit
c74a4e5720
@ -209,6 +209,7 @@ public class ShopChest extends JavaPlugin {
|
|||||||
getLogger().warning("Server version not officially supported: " + Utils.getServerVersion() + "!");
|
getLogger().warning("Server version not officially supported: " + Utils.getServerVersion() + "!");
|
||||||
//getLogger().warning("Plugin may still work, but more errors are expected!");
|
//getLogger().warning("Plugin may still work, but more errors are expected!");
|
||||||
getServer().getPluginManager().disablePlugin(this);
|
getServer().getPluginManager().disablePlugin(this);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
shopUtils = new ShopUtils(this);
|
shopUtils = new ShopUtils(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user