Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. @EventHandler
  2. public void onPlayerInteract(PlayerInteractEvent event)
  3. {
  4. Action a = event.getAction();
  5. ItemStack is = event.getItem();
  6.  
  7. if (a == Action.RIGHT_CLICK_BLOCK || is == null || is.getType() == Material.AIR)
  8. return;
  9. if (is.getType() == Material.ENDER_PORTAL_FRAME)
  10. openGUI(event.getPlayer());
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement