[SEC/FUN] Make cake, not war! v1.0 - A funny way to stop griefing [Permissions][1060]

Discussion in 'Inactive/Unsupported Plugins' started by Juliui, Aug 24, 2011.

  1. Offline

    Juliui

    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.
     
    dabram71 and Noppoly like this.
  2. Offline

    NeoSilky

    Gahh, buckets of lava annoy me :L my plugin doesnt ban them! :( nice plugin though :p
     
  3. Offline

    Juliui

    I doesn't start working on buckets of lava yet, I will I start soon. So thank you ^^.
     
  4. Offline

    MonsieurApple

    Approved, but please look to the future: BukkitDev.
     
    dabram71 likes this.
  5. Offline

    dabram71

    Best item black list plugin ever!
     
  6. Offline

    sayaad

    Buckets are registered under this event :p

    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!!!
     

Share This Page