Catching missing class on other platforms than Paper or older

Related #1313
This commit is contained in:
TuxCoding
2025-06-23 19:51:35 +02:00
parent 2ff6547552
commit 65a379c3c2

View File

@ -137,7 +137,7 @@ public class BungeeManager {
try {
ServerConfiguration.class.getDeclaredMethod("isProxyEnabled");
return Bukkit.getServerConfig().isProxyEnabled();
} catch (NoSuchMethodException noSuchMethodEx) {
} catch (NoClassDefFoundError | NoSuchMethodException noSuchClassMethodEx) {
// Ignore continue below
}