Make cake, not war! Disclaimer: This is my very first plugin, so in first I make it to try and train me to the functionalities of Bukkit. So please, be understanding. Description: All those griefers... Tired of this war against them? So make cake (peace), instead of war, by giving them some cake and flower! Features: Entirely configurable list of blacklisted items. Possibility to make griefers kicked when use illegal blocks. Nature friendly system against the lighter. Announcer. Permissions support (Permissions & PermissionsBukkit). Configuration file. Permissions: makecakenotwar.bypass : Allow the bypass of the security system. makecakenotwar.announcer : Users with this node will receive the announcement when someone put an illegal block / try to start a fire. Download: Make cake, not war! v1.0 -- Download! Source code (also in the download link above) -- GitHub! TODO: Stop the use of the bucket of lava. Any ideas of features ? Post them in the topic ! Changelog: Version 1.0: First release.
Buckets are registered under this event Code: pm.registerEvent(Event.Type.PLAYER_BUCKET_EMPTY, this.pl, Event.Priority.Highest, this); and to msg everyone when lava buckets or water buckets is placed and delete it : Code: public void onPlayerBucketEmpty(PlayerBucketEmptyEvent event) { Player player = event.getPlayer(); Server server = player.getServer(); String playername = player.getName(); if ((event.getBucket() == Material.LAVA_BUCKET) && (!player.hasPermission("nogrief.lava.bucket")) && (VAR.config.getBoolean("lava.Delete Lavabuckets"))) { event.setCancelled(true); server.broadcastMessage(whattobroadcast); player.setItemInHand(null); player.setItemInHand(new ItemStack(Material.BUCKET, 1)); player.kickPlayer("reason); } if ((event.getBucket() == Material.WATER_BUCKET) && (!player.hasPermission("nogrief.water.bucket")) && (VAR.config.getBoolean("water.Delete Waterbuckets"))) { event.setCancelled(true); server.broadcastMessage(whattobroadcast); player.setItemInHand(null); player.setItemInHand(new ItemStack(Material.BUCKET, 1)); player.kickPlayer(reason); } } This goes under the playerlistener!!!