Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onBlockBreak(BlockBreakEvent event) {
- Player player = event.getPlayer();
- Block block = event.getBlock();
- String world = event.getBlock().getWorld().getName();
- if (discoMain.players.contains(player)) {
- if (block.getType() == Material.WOOL) {
- player.sendMessage(ChatColor.YELLOW + "You removed a WOOL at "
- + block.getX() + ", " + block.getY() + ", " + block.getZ()
- + " in the world " + world);
- String name = discoMain.names.get(player); //gets disco name
- discoMain.blocks.remove(name); //removes disco from blocks
- discoPreferences.write();
- }
- }
- }
Add Comment
Please, Sign In to add comment