Hotfix BauSystem

This commit is contained in:
2024-08-07 13:35:22 +02:00
parent 23556b790a
commit 10e10c151b
@@ -115,9 +115,12 @@ public class BauSystem extends JavaPlugin implements Listener {
.map(s -> {
try {
return Class.forName(s, false, BauSystem.class.getClassLoader());
} catch (ClassNotFoundException e) {
Bukkit.shutdown();
throw new SecurityException(e.getMessage(), e);
} catch (ClassNotFoundException | NoClassDefFoundError e) {
if (e.getMessage().equals(s)) {
Bukkit.shutdown();
throw new SecurityException(e.getMessage(), e);
}
return null;
}
})
.filter(Objects::nonNull)