Inactive [SEC] SimpleAntiGrief v2.0 - Simple Config Options & Blacklist [1.2.3/2034]

Discussion in 'Inactive/Unsupported Plugins' started by captainawesome7, May 21, 2011.

  1. Offline

    captainawesome7

    All updates found at http://dev.bukkit.org/server-mods/simpleantigrief/
    SimpleAntiGrief - Simple Config Options To Protect Your Server
    Version: 1.4
    SimpleAntiGrief is very simple plugin that lets you set some config options to customize the damage and placement of certain blocks on your server. Just change the config options to true and your world will be protected. A blacklist is also added in v1.1, which blocks placement of certain blocks. The config and blacklist have been re-done, so please pay attention if you are updating!

    Features:
    • TONS of easy to understand configuration options to protect your server
    • Permissions to override certain options
    • Includes Creeper nerf, TNT nerf, and Mob nerf.
    • Blacklist to prevent certain items from being placed.
    • Blacklist to prevent certain items from being broken.
    • Option to kick people on placement of blocks.
    • Option to kick people on breaking of blocks.
    • Easy to use YAML config (thanks to @codename_B for help with multiple .yml files)
    Configuration
    Config (open)
    Config (open)

    A file called config.yml will appear in /plugins/SimpleAntiGrief/. The values are self explanatory, it looks like this:
    Code:
    Damage:[/COLOR]
    [COLOR=#ff0000]    BlockDamageToPlayers: false[/COLOR]
    [COLOR=#ff0000]    BlockAllDamage: false[/COLOR]
    [COLOR=#ff0000]    BlockMobFallDamage: false[/COLOR]
    [COLOR=#ff0000]    BlockDamageFromPlayers: false[/COLOR]
    [COLOR=#ff0000]    BlockPlayerFallDamage: false[/COLOR]
    [COLOR=#ff0000]    BlockDamageFromMobs: false[/COLOR]
    [COLOR=#ff0000]    BlockDamageToMobs: false[/COLOR]
    [COLOR=#ff0000]Lightning:[/COLOR]
    [COLOR=#ff0000]    BlockLightningDamageToPlayers: false[/COLOR]
    [COLOR=#ff0000]    BlockLightningDamageToMobs: false[/COLOR]
    [COLOR=#ff0000]Fire:[/COLOR]
    [COLOR=#ff0000]    BlockFireDamageToMobs: false[/COLOR]
    [COLOR=#ff0000]    BlockFireDamageToPlayers: false[/COLOR]
    [COLOR=#ff0000]    BlockFireOnBlocks: false[/COLOR]
    [COLOR=#ff0000]Building:[/COLOR]
    [COLOR=#ff0000]    InstantBreak: false[/COLOR]
    [COLOR=#ff0000]    InfiniteItems: false[/COLOR]
    [COLOR=#ff0000]Explosion:[/COLOR]
    [COLOR=#ff0000]    BlockTNTExplosionDamageToMobs: false[/COLOR]
    [COLOR=#ff0000]    KickOnTNTPrime: false[/COLOR]
    [COLOR=#ff0000]    BlockCreeperExplosionDamageToPlayers: false[/COLOR]
    [COLOR=#ff0000]    BlockCreeperExplosionDamageToMobs: false[/COLOR]
    [COLOR=#ff0000]    BlockCreeperExplosions: false[/COLOR]
    [COLOR=#ff0000]    BlockTNTPrime: false[/COLOR]
    [COLOR=#ff0000]    BlockTNTExplosionDamageToPlayers: false[/COLOR]
    [COLOR=#ff0000]    BlockTNTExplosions: false[/COLOR]
    [COLOR=#ff0000]Liquids:[/COLOR]
    [COLOR=#ff0000]    BlockLavaBucket: false[/COLOR]
    [COLOR=#ff0000]    KickOnWaterBucketUse: false[/COLOR]
    [COLOR=#ff0000]    KickOnLavaBucketUse: false[/COLOR]
    [COLOR=#ff0000]    BlockWaterBucket: false[/COLOR]
    [COLOR=#ff0000]    BlockLavaDamage: false

    All values are false by default, edit them if you want to :)

    Blacklist:
    Blacklist (open)
    Blacklist (open)

    Blacklist File:
    A new file will be created at plugins/SimpleAntiGrief/blacklist.yml. It is easy to use, but nothing is written in the file when it is created. Paste this into it for a format reference:
    Code:
    '1':[/COLOR]
    [COLOR=#ff0000]    Notify:[/COLOR]
    [COLOR=#ff0000]        Broadcast: false[/COLOR]
    [COLOR=#ff0000]        Player: false[/COLOR]
    [COLOR=#ff0000]        Log: false[/COLOR]
    [COLOR=#ff0000]    BlockPlace: false[/COLOR]
    [COLOR=#ff0000]    BlockBreak: false[/COLOR]
    [COLOR=#ff0000]    KickOnBreak: false[/COLOR]
    [COLOR=#ff0000]    KickOnPlace: false

    Just add blocks to the list like shown above. 1 is the block id, so in this case it is stone. The values are pretty self explanatory!
    Blacklist Permissions:
    To make somebody be able to bypass a block in blacklist.yml, add the following permission nodes:
    • For BlockBreak, give them sag.blacklist.break.ID
    • For BlockPlace, give them sag.blacklist.place.ID
    • For KickOnPlace and KickOnBreak give them sag.blacklist.kick.ID

    Downloads:
    Important: If you are updating from 1.0-1.3 to 1.4, you need to redo your configuration file and your blacklist!
    The source code is included in the .jar (/me/captain/SimpleAntiGrief/)

    Planned Changes
    • None so far
    Changelog:
    Version 1.4
    • Completely redid the config and blacklist!
    • Fixed BlockDamageFromPlayer and BlockDamageFromMob (why didn't anybody tell me about that?)
    Version 1.3
    • Fixed water bucket blocking not working (code fail)
    • Fixed water bucket kick on use (code fail)
    • Fixed lava bucket kick on use (code fail)
    Version 1.2
    • Overhauled blacklist, adds tons more options
    • You MUST delete your old Config.txt and Blacklist.txt when updating!
    Version 1.1
    • Added Blacklist
    Version 1.0
    • Release
    [/CODE][/COLOR]
     
    JTAKER and kahlilnc like this.
  2. Offline

    Taemera

    Perfect lightweight alternative for WorldGuard, thank you!

    When trying to place a block in the air (so just right-clicking without placing), the console shows this error:
    Show Spoiler
    2011-05-22 03:51:24 [SEVERE] Could not pass event PLAYER_INTERACT to SimpleAntiGrief
    java.lang.NullPointerException
    at me.captain.SimpleAntiGrief.SAGPL.onPlayerInteract(SAGPL.java:35)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:299)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:302)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:773)
    at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  3. Offline

    captainawesome7

    Ok, I will look into it :)
     
  4. Offline

    Darkrem09

    Nice plugin, I saw you have created 2 plugins about anti grief, I love your work :)
    (Please don't care if you find grammatical errors in my post -> I'm French *shayme*)
     
  5. Offline

    Taemera

    The error shows up when you right-click a door as well (even without a block in your hand):

    Show Spoiler
    2011-05-22 17:03:13 [SEVERE] Could not pass event PLAYER_INTERACT to SimpleAntiGrief
    java.lang.NullPointerException
    at me.captain.SimpleAntiGrief.SAGPL.onPlayerInteract(SAGPL.java:35)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:299)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:302)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:773)
    at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-22 17:03:16 [SEVERE] Could not pass event PLAYER_INTERACT to SimpleAntiGrief
    java.lang.NullPointerException
    at me.captain.SimpleAntiGrief.SAGPL.onPlayerInteract(SAGPL.java:35)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:299)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:302)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:773)
    at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  6. Offline

    captainawesome7

    @Taemera I think I fixed it, im testing the new version now

    Please re-download, all fixed

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
  7. Offline

    Taemera

    Fixed! Thanks a lot!
     
  8. Offline

    ephesian

    great i think its missing, unless im reading wrong, a option so creepers can hurt players, but not blocks.
     
  9. Offline

    captainawesome7

    @ephesian There isn't a way to do that. You can cancel the explosion, which is how it doesn't hurt blocks, but you can't somehow not cancel the event so it hurts players but still cancel it so it doesn't break blocks.
     
  10. Offline

    FXStrato

    Multi-world support? If it does have this, I'm downloading.
     
  11. Offline

    captainawesome7

    @FXStrato Multi world is in next version.
     
  12. Offline

    FXStrato

    ah.... I'll wait then. :D
     
  13. Offline

    Taemera

    I don't want to sound rude, but it is possible: WorldGuard does this.
     
  14. Offline

    captainawesome7

    @Taemera WG already has an advanced system of saving blocks, this doesn't.
     
  15. Offline

    Taemera

    Oh, please never do that. I deleted WorldGuard because it's way too big. This is a perfect lightweight anti-grief plugin, I love it!
     
  16. Offline

    Rampage212

    yes! thank you! Finally a simple anti grief plugin [diamond]x100 for you!
     
  17. Offline

    Tr0llgubbe

    Nice plugin, much easier than world guard..

    but, one suggestion. I'm kinda new to plugins, dont be too harsh when reply please: p
    Cant you make something like a list for players that can breake blocks and not, and building rights,
    like..

    #Building Rights related
    BuildRights=(Player name)
    BlockPlayerFromBuilding=(player name)
    BreakRights=(PlayerName
    BlockPlayerFromBreaking=(player name)

    I'm kinda new to plugins, dont be too harsh when reply please

    but thanks again for making this plugin dude, a [cake] for you!
     
  18. Offline

    captainawesome7

    @Tr0llgubbe
    Just use permissions. There is a default setting for that.
     
  19. Offline

    s15c

    Does the plugin allow for admins to override the blacklist? And if possible it would be awesome if you added a permission node to override the blacklist.
     
  20. Offline

    captainawesome7

    @s15c READ! Straight from the OP:
    Blacklist Permissions:
    To make somebody be able to bypass a block in Blacklist.txt, add the following permission nodes:

    • For Break-ID=true, give them sag.blacklist.break.ID
    • For Place-ID=true, give them sag.blacklist.place.ID
    • For KickOnPlace and KickOnBreak give them sag.blacklist.kick.ID
     
  21. Love this! One problem that I have come across though was when I disable lavabucket use and it disables water bucket use as well and kicks you even when the kickwhenlavabucketuse is set to false..
     
  22. Offline

    captainawesome7

    Hmm, I'll check out the code, maybe I messed up

    All fixed! All of the bugs were just dumb fails in the code :/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
  23. Offline

    Veve

    Hi, i set my black list to:
    Code:
    '57':
        Notify:
            Broadcast: false
            Player: false
            Log: false
        BlockPlace: false
        BlockBreak: true
        KickOnBreak: true
        KickOnPlace: false
    '41':
        Notify:
            Broadcast: false
            Player: false
            Log: false
        BlockPlace: false
        BlockBreak: true
        KickOnBreak: true
        KickOnPlace: false
    '42':
        Notify:
            Broadcast: false
            Player: false
            Log: false
        BlockPlace: false
        BlockBreak: true
        KickOnBreak: true
        KickOnPlace: false
    '87':
        Notify:
            Broadcast: false
            Player: false
            Log: false
        BlockPlace: false
        BlockBreak: true
        KickOnBreak: true
        KickOnPlace: false
    '89':
        Notify:
            Broadcast: false
            Player: false
            Log: false
        BlockPlace: false
        BlockBreak: true
        KickOnBreak: true
        KickOnPlace: false
    I want to players cant break blocks of diamonts, gold and other. What is wrong? it doesnt work:/
     
  24. Offline

    clone00013

    Im using blastcontrol to give creepers fangs, but this plugin is causing them to despawn before they can even do that. How can i configure the plugin to block creeper explosions but not despawn them>?
     
  25. Offline

    captainawesome7

    I think just blockcreeperexplosion
     
  26. Offline

    clone00013

    have it set to true. does it need to be false?

    #Explosion Related Blocks:
    BlockPrimeOfTNT=true
    KickPlayerOnTNTPrime=false
    BlockTNTExplosions=true
    BlockCreeperExplosions=true
    BlockTNTExplosionDamageToPlayers=true
    BlockTNTExplosionDamageToMobs=false
    BlockCreeperExplosionDamageToPlayers=false
    BlockCreeperExplosionDamageToMobs=false
     
  27. Offline

    Taemera

    I had to set BlockCreeperExplosions to false to allow the CreeperRod plugin to do tis thing (creepers summon 5 lightning strikes instead of exploding).

    Explosion:
    BlockTNTExplosionDamageToMobs: false
    KickOnTNTPrime: true
    BlockCreeperExplosionDamageToPlayers: false
    BlockCreeperExplosionDamageToMobs: false
    BlockCreeperExplosions: false
    BlockTNTPrime: true
    BlockTNTExplosionDamageToPlayers: false
    BlockTNTExplosions: true
     
  28. Offline

    Jobsti

    Hi, is there an option for "Prevent Mob Targeting " for Defaul-Users like the old Antigrief?
     
  29. Offline

    captainawesome7

    I can add that in the next version, but there currently is not.
     
  30. Offline

    mesiapk

    Hey would it be OK if i made a review for this that you would put on here, it helps you with how to install and use and it helps me with subscribers its free :)
     

Share This Page