SteamWar/MissileWars
Archiviert
13
0
Dieser Commit ist enthalten in:
jojo 2020-09-26 21:49:54 +02:00
Ursprung 48dac847ee
Commit d15728aba8

Datei anzeigen

@ -149,18 +149,6 @@ public class Missile extends SpecialItem {
}
public static void init() {
File missileFolder = new File(MissileWars.getPlugin().getDataFolder(), "default-missiles");
if (!missileFolder.exists() || !missileFolder.canRead() || !missileFolder.isDirectory()) {
throw new SecurityException("Missiles could not be loaded");
}
for (File missileFile : Objects.requireNonNull(missileFolder.listFiles())) {
if (!missileFile.canRead() || !missileFile.isFile()) continue;
new Missile(missileFile);
}
otherInit();
}
public static void otherInit() {
File missileFolder = new File(MissileWars.getPlugin().getDataFolder(), "missiles");
if (!missileFolder.exists() || !missileFolder.canRead() || !missileFolder.isDirectory()) {
throw new SecurityException("Missiles could not be loaded");