Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
cuanto el pl de sw?
[SPOILER]
Lifeonblack, Like this? if ((p.getItemInHand().getType().equals(Material.EMERALD)) && (p.getItemInHand().hasItemMeta())) {...
Well that works. Now if the player does not have 20 emeralds the event is cancelled Is that so? if(is.getAmount()<= 20) {...
this does not work p.getItemInHand().setAmount(amount - 1);}
Someone could tell me I did wrong? From now thanks @EventHandler public void ClickListener(PlayerInteractEvent event) { Player p =...
@EventHandler public void onShifAndLeftClick(PlayerInteractEvent event) { Player p = event.getPlayer();...
Hello, a question someone could tell me is I'm doing wrong, looking at the chest and open it does not work @EventHandler public void...