Advertisement
MsGamerHD

Untitled

Sep 8th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1.     @EventHandler
  2.     public void on(PlayerInteractEvent e){
  3.         Player p = e.getPlayer();
  4.        
  5.         if(e.getAction() == Action.RIGHT_CLICK_BLOCK){
  6.             Material clicked = e.getClickedBlock().getType();
  7.            
  8.             if(clicked == Material.SKULL || clicked == Material.SKULL_ITEM){
  9.                 Skull skull = (Skull) e.getClickedBlock().getState();
  10.                 if(skull.getOwner().equals("MHF_Chest")){
  11.                     //AUSFÜHREN
  12.                 }
  13.             }
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement