Browse Source

Updating Bukkit enum values

RedstoneFuture 4 months ago
parent
commit
114a4cd4ef

+ 1 - 1
missilewars-plugin/src/main/java/de/butzlabben/missilewars/configuration/arena/modules/MissileConfig.java

@@ -49,7 +49,7 @@ public class MissileConfig extends SchematicConfiguration {
         add(new Missile("Tomahawk.schem", "&a%schematic_name_compact%", 3, EntityType.CREEPER, 0, 2));
         add(new Missile("Tomahawk.schem", "&a%schematic_name_compact%", 3, EntityType.CREEPER, 0, 2));
         add(new Missile("Cruiser.schem", "&e%schematic_name_compact%", 2, EntityType.BLAZE, 0, 2));
         add(new Missile("Cruiser.schem", "&e%schematic_name_compact%", 2, EntityType.BLAZE, 0, 2));
         add(new Missile("Sword.schem", "&7%schematic_name_compact%", 2, EntityType.SKELETON, 0, 2));
         add(new Missile("Sword.schem", "&7%schematic_name_compact%", 2, EntityType.SKELETON, 0, 2));
-        add(new Missile("Juggernaut.schem", "&4%schematic_name_compact%", 2, EntityType.MUSHROOM_COW, 0, 2));
+        add(new Missile("Juggernaut.schem", "&4%schematic_name_compact%", 2, EntityType.MOOSHROOM, 0, 2));
         add(new Missile("Piranha.schem", "&3%schematic_name_compact%", 3, EntityType.HORSE, 0, 2));
         add(new Missile("Piranha.schem", "&3%schematic_name_compact%", 3, EntityType.HORSE, 0, 2));
         add(new Missile("Tunnelbore.schem", "&0%schematic_name_compact%", 1, EntityType.ENDERMAN, 0, 2));
         add(new Missile("Tunnelbore.schem", "&0%schematic_name_compact%", 1, EntityType.ENDERMAN, 0, 2));
     }};
     }};

+ 4 - 4
missilewars-plugin/src/main/java/de/butzlabben/missilewars/game/equipment/EquipmentManager.java

@@ -61,12 +61,12 @@ public class EquipmentManager {
         if (game.getArenaConfig().getSpawn().isSendBow() || game.getArenaConfig().getRespawn().isSendBow()) {
         if (game.getArenaConfig().getSpawn().isSendBow() || game.getArenaConfig().getRespawn().isSendBow()) {
 
 
             ItemStack bow = new ItemStack(Material.BOW);
             ItemStack bow = new ItemStack(Material.BOW);
-            bow.addEnchantment(Enchantment.ARROW_FIRE, 1);
-            bow.addEnchantment(Enchantment.ARROW_DAMAGE, 1);
-            bow.addEnchantment(Enchantment.ARROW_KNOCKBACK, 1);
+            bow.addEnchantment(Enchantment.FLAME, 1);
+            bow.addEnchantment(Enchantment.POWER, 1);
+            bow.addEnchantment(Enchantment.PUNCH, 1);
             ItemMeta bowMeta = bow.getItemMeta();
             ItemMeta bowMeta = bow.getItemMeta();
             bowMeta.setUnbreakable(true);
             bowMeta.setUnbreakable(true);
-            bowMeta.addEnchant(Enchantment.DAMAGE_ALL, 6, true);
+            bowMeta.addEnchant(Enchantment.SHARPNESS, 6, true);
             bow.setItemMeta(bowMeta);
             bow.setItemMeta(bowMeta);
             this.customBow = bow;
             this.customBow = bow;
         }
         }

+ 1 - 1
missilewars-plugin/src/main/java/de/butzlabben/missilewars/game/schematics/objects/Missile.java

@@ -118,7 +118,7 @@ public class Missile extends SchematicObject {
     }
     }
 
 
     public static Material getSpawnEgg(EntityType type) {
     public static Material getSpawnEgg(EntityType type) {
-        if (type == EntityType.MUSHROOM_COW) {
+        if (type == EntityType.MOOSHROOM) {
             return Material.valueOf("MOOSHROOM_SPAWN_EGG");
             return Material.valueOf("MOOSHROOM_SPAWN_EGG");
 
 
         }
         }

+ 2 - 2
missilewars-plugin/src/main/java/de/butzlabben/missilewars/menus/MenuItem.java

@@ -122,7 +122,7 @@ public class MenuItem {
     
     
     public static void setEnchantment(ItemStack itemStack) {
     public static void setEnchantment(ItemStack itemStack) {
         ItemMeta itemMeta = itemStack.getItemMeta();
         ItemMeta itemMeta = itemStack.getItemMeta();
-        if (itemMeta != null) itemMeta.addEnchant(Enchantment.LUCK, 10, true);
+        if (itemMeta != null) itemMeta.addEnchant(Enchantment.FORTUNE, 10, true);
         itemStack.setItemMeta(itemMeta);
         itemStack.setItemMeta(itemMeta);
     }
     }
     
     
@@ -135,7 +135,7 @@ public class MenuItem {
     public static void hideMetaValues(ItemStack itemStack) {
     public static void hideMetaValues(ItemStack itemStack) {
         ItemMeta itemMeta = itemStack.getItemMeta();
         ItemMeta itemMeta = itemStack.getItemMeta();
         if (itemMeta != null) itemMeta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES, ItemFlag.HIDE_DESTROYS, ItemFlag.HIDE_DYE, ItemFlag.HIDE_ENCHANTS, 
         if (itemMeta != null) itemMeta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES, ItemFlag.HIDE_DESTROYS, ItemFlag.HIDE_DYE, ItemFlag.HIDE_ENCHANTS, 
-                ItemFlag.HIDE_PLACED_ON, ItemFlag.HIDE_UNBREAKABLE, ItemFlag.HIDE_POTION_EFFECTS);
+                ItemFlag.HIDE_PLACED_ON, ItemFlag.HIDE_UNBREAKABLE, ItemFlag.HIDE_ARMOR_TRIM, ItemFlag.HIDE_ADDITIONAL_TOOLTIP);
         itemStack.setItemMeta(itemMeta);
         itemStack.setItemMeta(itemMeta);
     }
     }