Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void on(PlayerInteractEvent e){
- Player p = e.getPlayer();
- if(e.getAction() == Action.RIGHT_CLICK_BLOCK){
- Material clicked = e.getClickedBlock().getType();
- if(clicked == Material.SKULL || clicked == Material.SKULL_ITEM){
- Skull skull = (Skull) e.getClickedBlock().getState();
- if(skull.getOwner().equals("MHF_Chest")){
- //AUSFÜHREN
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement