!Fix incompatible version enable error message

This commit is contained in:
Indyuce 2019-12-22 15:04:58 +01:00
parent 762c6fe3ae
commit a26d19716d

View File

@ -115,7 +115,6 @@ public class MMOItems extends JavaPlugin {
getLogger().log(Level.INFO, "Your server version is not compatible.");
Bukkit.getPluginManager().disablePlugin(this);
return;
// nms = new NMSHandler_Reflection();
}
try {
@ -136,6 +135,15 @@ public class MMOItems extends JavaPlugin {
}
public void onEnable() {
/*
* server version compatibility checks are ran when the plugin loads. if
* the nms object is null, it means the version is not compatible
* therefore MI should not enable
*/
if (nms == null)
return;
new SpigotPlugin(39267, this).checkForUpdate();
new MMOItemsMetrics();