From 4daf1c7721c86db10f77aef4f1258045b6ccba4e Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Mon, 13 May 2019 15:56:28 -0400 Subject: [PATCH] Fixes #2355 --- .../plotsquared/bukkit/BukkitMain.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java index 42e9ff489..986b2d4a4 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java @@ -131,14 +131,6 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain } @Override public void onEnable() { - if (PlotSquared.get().IMP.getServerVersion()[1] < 13) { - System.out.println( - "You can't use this version of PlotSquared on a server less than Minecraft 1.13.2."); - System.out - .println("Please check the download page for the link to the legacy versions."); - Bukkit.shutdown(); - return; - } this.pluginName = getDescription().getName(); PlotPlayer.registerConverter(Player.class, BukkitUtil::getPlayer); @@ -161,6 +153,15 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain new PlotSquared(this, "Bukkit"); + if (PlotSquared.get().IMP.getServerVersion()[1] < 13) { + System.out.println( + "You can't use this version of PlotSquared on a server less than Minecraft 1.13.2."); + System.out + .println("Please check the download page for the link to the legacy versions."); + Bukkit.shutdown(); + return; + } + // Check for updates if (PlotSquared.get().getUpdateUtility() != null) { final UpdateUtility updateUtility = PlotSquared.get().getUpdateUtility();