From 9f2baf71f71f688bdc80d85d29bb6b8c7f63003e Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Mon, 21 Dec 2020 19:43:23 +0100 Subject: [PATCH] Remove unnecessary version check Due the provided scope and api-version it won't load on older versions anyway --- .../sk89q/worldedit/bukkit/WorldEditPlugin.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index f2d2e1347..500d3796e 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -19,7 +19,6 @@ package com.sk89q.worldedit.bukkit; - import com.boydti.fawe.Fawe; import com.boydti.fawe.bukkit.FaweBukkit; import com.google.common.base.Joiner; @@ -93,19 +92,6 @@ import static com.sk89q.worldedit.internal.anvil.ChunkDeleter.DELCHUNKS_FILE_NAM */ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter - // This must be before the Logger is initialized, which fails in 1.8 - private static final String FAILED_VERSION_CHECK = - "\n**********************************************\n" - + "** This Minecraft version (%s) is not supported by this version of WorldEdit.\n" - + "** Please download an OLDER version of WorldEdit which does.\n" - + "**********************************************\n"; - - static { - if (PaperLib.getMinecraftVersion() < 13) { - throw new IllegalStateException(String.format(FAILED_VERSION_CHECK, Bukkit.getVersion())); - } - } - private static final Logger log = LoggerFactory.getLogger(WorldEditPlugin.class); public static final String CUI_PLUGIN_CHANNEL = "worldedit:cui"; private static WorldEditPlugin INSTANCE;