Skip to content

Commit 8eb9663

Browse files
committed
Skip version check entirely
Useful for hybrid servers
1 parent 4484e9c commit 8eb9663

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/solarrabbit/largeraids/LargeRaids.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ public final class LargeRaids extends JavaPlugin {
6161
public void onEnable() {
6262
logger = new PluginLogger();
6363

64-
if (!VERSION.equals(Bukkit.getServer().getMinecraftVersion())) {
64+
boolean noCheck = LargeRaids.class.getResource("/SKIP_VERSION_CHECK.txt") != null;
65+
if (noCheck) {
66+
log("You have chosen to skip the version check entirely", Level.WARN);
67+
}
68+
if (!noCheck && !VERSION.equals(Bukkit.getServer().getMinecraftVersion())) {
6569
boolean skipCheck = LargeRaids.class.getResource("/BYPASS_VERSION_CHECK.txt") != null;
6670
log(String.format("Server version is not supported! Supported Version: %s, Your Version: %s",
6771
VERSION, Bukkit.getServer().getMinecraftVersion()), Level.FAIL, false);

0 commit comments

Comments
 (0)