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

    Jobsti

  3. Offline

    hellsome

    can you add a command to block all items with one line of writing instead of having to write in all the id numbers(hundreds)
     
  4. Offline

    captainawesome7

    You could just use Permissions' default build: false
     
  5. Offline

    hellsome

    thats not working at the moment :/
     
  6. Offline

    captainawesome7

    Oh. I'll put an option in the next version that lets you switch between a whitelist and blacklist mode. To block all or none by default.
     
  7. Offline

    hellsome

    ok thanks

    oh and the whitlist will be by-passable in permissions if you set the permission sag.blacklist.place.ID etc. correct?

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

    captainawesome7

    I don't know, we'll see when I'm done adding the whitelist.
     
  9. Offline

    Pr0Failure

    Multi-World support would help tons.
     
  10. Offline

    captainawesome7

    Ah, I can definitely add that in.
     
  11. Offline

    nggmc

    None of it works for me..
     
  12. Offline

    captainawesome7

    You're doing it wrong, my friend.
     
  13. Offline

    nggmc

    lol yeah I know I am..
    But Im not that much of a Genious :L
    Well I'm not sure how to get your plug in working but maybe I will try again later!
    I am using a different Anti Griefing solution now
     
  14. Offline

    MotionArts

    does this work for release 1000??
     
  15. Offline

    captainawesome7

    Yeah
     
  16. Offline

    OZ4RK

    umm, I am getting absolutely no response form this plugin. It says it successfully was enabled and using permissions on startup, and no errors occur. Although people without bypass nodes can still place, break blocks that are on black list. I need this to work urgently.
    My Blacklist.yml:
    Code:
    '10':
        Notify:
            Broadcast: true
            Player: true
            Log: true
        BlockPlace: true
        BlockBreak: true
        KickOnBreak: false
        KickOnPlace: true
    '46':
        Notify:
            Broadcast: true
            Player: true
            Log: true
        BlockPlace: true
        BlockBreak: true
        KickOnBreak: false
        KickOnPlace: false
    '51':
        Notify:
            Broadcast: true
            Player: true
            Log: true
        BlockPlace: true
        BlockBreak: true
        KickOnBreak: false
        KickOnPlace: true
    
    If you need anything else just ask. Hopefully you can help.
     
  17. Offline

    kuledaniel

    what the permission of all of they ?
     
  18. Offline

    captainawesome7

    Um, sag.* I think
     
  19. Offline

    kuledaniel

    what is permission all of they??????? im waiting!!! and i have ask you two time for now!
     
  20. Offline

    captainawesome7

    [​IMG]
     
  21. Offline

    kuledaniel

    -.-

    stop

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

    captainawesome7

    I already answered your question...
     
  23. Offline

    kuledaniel

    Is sag.* the permission?
     
  24. Offline

    DQuaN

    Can you update to nerf endermen please?
     
  25. Offline

    captainawesome7

    in a little
     
  26. Offline

    sza22

    i must be doing something quite wrong. a blacklist.yml file doesn't generate for me when i started my server with the plugin installed. any ideas? (MC 1.8.1, CB 1185, plugin version 1.4)
     
  27. Offline

    captainawesome7

    Any errors in the console/log?
     
  28. Offline

    sza22

    Nope it just says:
    and
     
  29. Offline

    Ryan56k

    Black list isn't working for me either :/
     
  30. please update to r5 this is like a must have plugin like 100% i need this
     
  31. Offline

    captainawesome7

    I'll be revisiting the code when R5 is released. It'll probably see an update then (as in 95% sure).
     

Share This Page