From e289fa6061e18470354441288b635a19cb14a2aa Mon Sep 17 00:00:00 2001 From: Geri Date: Thu, 8 Feb 2024 17:08:55 +0100 Subject: [PATCH] fix: allow 2 more ports --- build.gradle | 2 +- common/src/main/java/host/bloom/ab/common/AbstractPlugin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 9e0de05..35eedfd 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ plugins { ext { pluginName = 'BloomAB' - pluginVersion = '1.5.0' + pluginVersion = '1.5.1' pluginDescription = 'Anti bot protection for Bloom servers' pluginAuthor = 'Bloom' pluginWebsite = 'https://bloom.host' diff --git a/common/src/main/java/host/bloom/ab/common/AbstractPlugin.java b/common/src/main/java/host/bloom/ab/common/AbstractPlugin.java index 3bba5e9..6be58f0 100644 --- a/common/src/main/java/host/bloom/ab/common/AbstractPlugin.java +++ b/common/src/main/java/host/bloom/ab/common/AbstractPlugin.java @@ -34,7 +34,7 @@ enum Platform { default void afterStartup() { // Ensure it's on a supported port - List supportedPorts = List.of(25565); + List supportedPorts = List.of(25565, 25566, 25567); if (!supportedPorts.contains(this.getPort())) { throw new RuntimeException("The server is not using a supported port! Please ensure it's using one of the following ports, and restart: " + supportedPorts.stream().map(String::valueOf).collect(Collectors.joining(", "))); }