I never thought it would come to this

This commit is contained in:
MattBDev 2019-05-10 17:16:48 -04:00
parent 885d1b9d7e
commit d8ac6115c7

View file

@ -115,7 +115,12 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
} }
@Override public void onEnable() { @Override public void onEnable() {
if (PlotSquared.get().IMP.getServerVersion()[1] < 13) {
PlotSquared.log("You can't use this version of PlotSquared on a server less than Minecraft 1.13.2.");
PlotSquared.log("Please check the download page for the link to the legacy versions.");
Bukkit.shutdown();
return;
}
this.pluginName = getDescription().getName(); this.pluginName = getDescription().getName();
PlotPlayer.registerConverter(Player.class, BukkitUtil::getPlayer); PlotPlayer.registerConverter(Player.class, BukkitUtil::getPlayer);