From 21ddadae99fcafea57d7bb331c5961b9bccc3468 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 22 Jul 2022 20:57:00 +0200 Subject: [PATCH] Update icons Signed-off-by: yoyosource --- .../bausystem/features/countingwand/Countingwand.java | 4 ++++ .../bausystem/features/detonator/DetonatorCommand.java | 1 + .../bausystem/features/simulator/SimulatorStorage.java | 3 +++ 3 files changed, 8 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/countingwand/Countingwand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/countingwand/Countingwand.java index b6f786dc..fb9316b9 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/countingwand/Countingwand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/countingwand/Countingwand.java @@ -28,6 +28,7 @@ import lombok.experimental.UtilityClass; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.meta.ItemMeta; import java.util.Arrays; import java.util.HashMap; @@ -40,6 +41,9 @@ public class Countingwand { public static ItemStack getWandItem(Player player) { ItemStack itemStack = new SWItem(Material.STICK, BauSystem.MESSAGE.parse("COUNTINGWAND_ITEM_NAME", player), Arrays.asList(BauSystem.MESSAGE.parse("COUNTINGWAND_ITEM_LORE1", player), BauSystem.MESSAGE.parse("COUNTINGWAND_ITEM_LORE2", player)), false, null).getItemStack(); ItemUtils.setItem(itemStack, "countingwand"); + ItemMeta itemMeta = itemStack.getItemMeta(); + itemMeta.setCustomModelData(1); + itemStack.setItemMeta(itemMeta); return itemStack; } diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/detonator/DetonatorCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/detonator/DetonatorCommand.java index 73435fde..219b1b6f 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/detonator/DetonatorCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/detonator/DetonatorCommand.java @@ -47,6 +47,7 @@ public class DetonatorCommand extends SWCommand { meta.setLore(Arrays.asList(BauSystem.MESSAGE.parse("DETONATOR_WAND_LORE_1", player), BauSystem.MESSAGE.parse("DETONATOR_WAND_LORE_2", player), BauSystem.MESSAGE.parse("DETONATOR_WAND_LORE_3", player))); + meta.setCustomModelData(3); wand.setItemMeta(meta); ItemUtils.setItem(wand, "detonator"); diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java index d22a9c4e..a75196c1 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java @@ -124,6 +124,9 @@ public class SimulatorStorage implements Enable, Disable { public static ItemStack getWand(Player p) { ItemStack itemStack = new SWItem(Material.BLAZE_ROD, BauSystem.MESSAGE.parse("SIMULATOR_WAND_NAME", p), Arrays.asList(BauSystem.MESSAGE.parse("SIMULATOR_WAND_LORE_1", p), BauSystem.MESSAGE.parse("SIMULATOR_WAND_LORE_2", p), BauSystem.MESSAGE.parse("SIMULATOR_WAND_LORE_3", p), BauSystem.MESSAGE.parse("SIMULATOR_WAND_LORE_4", p), BauSystem.MESSAGE.parse("SIMULATOR_WAND_LORE_5", p)), false, null).getItemStack(); + ItemMeta itemMeta = itemStack.getItemMeta(); + itemMeta.setCustomModelData(1); + itemStack.setItemMeta(itemMeta); ItemUtils.setItem(itemStack, "simulator"); return itemStack; }