Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- private void on(PlayerInteractEvent event) {
- Block block = event.getClickedBlock();
- if(block!=null)
- if (!this.region.containsPoint(this.world, block.getLocation()))
- return;
- event.getPlayer().sendMessage("Works");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement