Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onPlayerInteract(PlayerInteractEvent event)
- {
- Action a = event.getAction();
- ItemStack is = event.getItem();
- if (a == Action.RIGHT_CLICK_BLOCK || is == null || is.getType() == Material.AIR)
- return;
- if (is.getType() == Material.ENDER_PORTAL_FRAME)
- openGUI(event.getPlayer());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement