mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
!Fix incompatible version enable error message
This commit is contained in:
parent
762c6fe3ae
commit
a26d19716d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user