Do not disable plugin on unsupported versions

This commit is contained in:
Fabrizio La Rosa 2020-07-14 10:43:26 +02:00
parent 9b6e8d9baa
commit ca7af0d290

View File

@ -114,9 +114,7 @@ public class SkyBlock extends SongodaPlugin {
@Override @Override
public void onPluginEnable() { public void onPluginEnable() {
if(ServerVersion.isServerVersionAbove(ServerVersion.V1_16)) { if(ServerVersion.isServerVersionAbove(ServerVersion.V1_16)) {
this.getLogger().warning("This Minecraft version is not supported. Disabling..."); this.getLogger().warning("This Minecraft version is not officially supported.");
getServer().getPluginManager().disablePlugin(this);
return;
} }
if(paper = ServerProject.isServer(ServerProject.PAPER)){ if(paper = ServerProject.isServer(ServerProject.PAPER)){