diff --git a/src/de/steamwar/misslewars/items/Missile.java b/src/de/steamwar/misslewars/items/Missile.java index 09535c2..de2de5a 100644 --- a/src/de/steamwar/misslewars/items/Missile.java +++ b/src/de/steamwar/misslewars/items/Missile.java @@ -165,7 +165,7 @@ public class Missile extends SpecialItem { } public static void init(){ - File missileFolder = new File(MissileWars.getPlugin().getDataFolder(), "default-missles"); + File missileFolder = new File(MissileWars.getPlugin().getDataFolder(), "default-missiles"); if (!missileFolder.exists() || !missileFolder.canRead() || !missileFolder.isDirectory()) { throw new SecurityException("Missiles could not be loaded"); } diff --git a/src/de/steamwar/misslewars/items/SpecialItem.java b/src/de/steamwar/misslewars/items/SpecialItem.java index a4397ef..3b22372 100644 --- a/src/de/steamwar/misslewars/items/SpecialItem.java +++ b/src/de/steamwar/misslewars/items/SpecialItem.java @@ -67,6 +67,11 @@ public abstract class SpecialItem { } public static boolean handleUse(ItemStack item, Player player) { + for (SpecialItem missileItem : missileItems) { + if (item.isSimilar(missileItem.getItem())) { + return missileItem.handleUse(player); + } + } for (SpecialItem specialItem : supportItems) { if (item.isSimilar(specialItem.getItem())) { return specialItem.handleUse(player);