SteamWar/MissileWars
Archiviert
13
0

Add SpecialMissile Info in Sidebar

Dieser Commit ist enthalten in:
jojo 2020-09-18 22:29:08 +02:00
Ursprung d81089beb7
Commit e46c085260

Datei anzeigen

@ -37,16 +37,13 @@ import de.steamwar.misslewars.MissileWars;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.*;
import java.util.logging.Level;
public class Missile extends SpecialItem {
@ -185,7 +182,6 @@ public class Missile extends SpecialItem {
for (int i = 0; i < 4; i++) {
File missileFile = pool.remove(r.nextInt(pool.size()));
Bukkit.getLogger().log(Level.SEVERE, missileFile.getAbsolutePath());
if (!missileFile.canRead() || !missileFile.isFile()) continue;
new Missile(missileFile, true);
}