forked from SteamWar/SteamWar
Hotfix BauSystem
This commit is contained in:
@@ -115,9 +115,12 @@ public class BauSystem extends JavaPlugin implements Listener {
|
|||||||
.map(s -> {
|
.map(s -> {
|
||||||
try {
|
try {
|
||||||
return Class.forName(s, false, BauSystem.class.getClassLoader());
|
return Class.forName(s, false, BauSystem.class.getClassLoader());
|
||||||
} catch (ClassNotFoundException e) {
|
} catch (ClassNotFoundException | NoClassDefFoundError e) {
|
||||||
Bukkit.shutdown();
|
if (e.getMessage().equals(s)) {
|
||||||
throw new SecurityException(e.getMessage(), e);
|
Bukkit.shutdown();
|
||||||
|
throw new SecurityException(e.getMessage(), e);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.filter(Objects::nonNull)
|
.filter(Objects::nonNull)
|
||||||
|
|||||||
Reference in New Issue
Block a user