13
0

Update color of item
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2023-03-27 19:06:17 +02:00
Ursprung 6f308e3a56
Commit 0e103b52f9

Datei anzeigen

@ -12,7 +12,7 @@ import org.bukkit.inventory.ItemStack;
public class EggHuntListener extends BasicListener { public class EggHuntListener extends BasicListener {
public static final int EASTER_EGG_SLOT = 7; public static final int EASTER_EGG_SLOT = 7;
public static final ItemStack EASTER_HUNT = new ItemBuilder(Material.DRAGON_EGG, 1).setDisplayName("§5Easter Hunt").build(); public static final ItemStack EASTER_HUNT = new ItemBuilder(Material.DRAGON_EGG, 1).setDisplayName("§fEaster Hunt").build();
@EventHandler(priority = EventPriority.LOWEST) @EventHandler(priority = EventPriority.LOWEST)
public void handlePlayerInteract(PlayerInteractEvent event) { public void handlePlayerInteract(PlayerInteractEvent event) {
@ -20,7 +20,7 @@ public class EggHuntListener extends BasicListener {
if(item == null) if(item == null)
return; return;
if (item.getType() == Material.DRAGON_EGG && item.getItemMeta() != null && item.getItemMeta().getDisplayName().equals("§5Easter Hunt")) { if (item.getType() == Material.DRAGON_EGG && item.getItemMeta() != null && item.getItemMeta().getDisplayName().equals("§fEaster Hunt")) {
event.getPlayer().performCommand("egg"); event.getPlayer().performCommand("egg");
} }
} }