Dieser Commit ist enthalten in:
Ursprung
6f308e3a56
Commit
0e103b52f9
@ -12,7 +12,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
public class EggHuntListener extends BasicListener {
|
||||
|
||||
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)
|
||||
public void handlePlayerInteract(PlayerInteractEvent event) {
|
||||
@ -20,7 +20,7 @@ public class EggHuntListener extends BasicListener {
|
||||
if(item == null)
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren