Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler(priority = EventPriority.HIGHEST)
- public void onBlockBreak(BlockBreakEvent e) {
- if (e.getPlayer().isOp == false) {
- e.setCancelled(true);
- e.getPlayer().sendMessage("Sorry only ops can break blocks")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment