[INACTIVE] [SEC] BlockAlarm 1.5 - Disallow Block Place, Bucket Flow, and Craft Events [1000]

Discussion in 'Inactive/Unsupported Plugins' started by instipod, Jul 27, 2011.

  1. Offline

    instipod

    BlockAlarm - Ban and watch blocks!
    Version 1.5
    Tested with: CraftBukkit 1000

    About The Plugin:
    BlockAlarm allows the server administrators to ban or "watch" blocks on the entire server. When a block is banned, users cannot place it and the server is notified that the block was attempted. When a block is watched ("warn"), users can place it and the server is notified that the block was placed.

    Download the Plugin (.jar)

    Crafting Protection:
    This is provided by Spout. You must install the Spout SERVER library for this to work. You DO NOT need the client mod. To enable protection, go into blacklist.properties and change crafting-protection to true.

    Features:
    • Permissions Support
    • Multiple Worlds Support
    • Ban blocks (cannot place)
    • Ban and watch buckets as well
    • Just watch blocks (can place, just get notification)
    • In-game configuration
    • Ban crafting of blocks.
    Commands:
    • /ba ban [block id] - Bans the use of the specified block ID/item ID
    • /ba warn [block id] - Allows placement, but warns server on block place or item use
    • /ba remove [block id] - Removes the block/item from being banned or watched
    • /banlist - Shows all banned blocks and items
    Permission nodes:
    • blockalarm.admin - Allows the user to ban/watch blocks
    • blockalarm.bypass.place - Allows the user to bypass block place bans.
    • blockalarm.bypass.craft - Allows the user to craft banned items.
    • blockalarm.bypass.bucket - Allows the user to bypass bucket bans.
    Changelog:
    Version 1.5
    • Updated for Spout (No Longer Supports BukkitContrib)
    • Permissions Bug Fix
    Version 1.4.2
    • Fixed typo on line 29
    Version 1.4.1
    • Crafting Bug Fix
    • Added /banlist command
    • More permissions.
    Version 1.4
    • Crafting Protection
    • Better Permissions
    Version 1.3
    • Added protection for buckets
    Version 1.2
    • Added in-game commands
    • Added permissions
    Version 1.1
    • Added Watching of blocks
    Version 1.0
    • First release
    • Banning of blocks

    The plugin is now updated to 1.3! This update allows you to protect from buckets as well.

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

    yepwatermelon

    Yeah I can't get this plugin to work:
    Any ideas?
    Sounds like a great plugin though. I'd really like to get this working.
     
  3. Offline

    NuclearW

    You need to install BukkitContrib.
     
  4. Offline

    instipod

    The next 1.4 release will have a fix for this. It will allow you to enable/disable BukkitContrib at the cost of enable/disabling crafting protection.
     
  5. Offline

    instipod

    1.4.1 is out! This fixes the exceptions on crafting.
     
  6. Offline

    pucky

    Code:
    [SEVERE] Error occurred while enabling BlockAlarm v1.4.2 (Is it up to date?): org/bukkitcontrib/event/inventory/InventoryListener
    java.lang.NoClassDefFoundError: org/bukkitcontrib/event/inventory/InventoryListener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:219)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:32)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.instipod.blockalarm.BlockAlarm.onEnable(BlockAlarm.java:55)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: org.bukkitcontrib.event.inventory.InventoryListener
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 26 more
    It stops moderators placing blocks even though blockalarm.bypass.place, blockalarm.bypass.craft, and blockalarm.bypass.bucket are all in the permissions file under moderators

    any way to fix this?
     
  7. Offline

    instipod

    You need to get BukkitContrib.
     
  8. Offline

    Junrall

    Hmmm... not sure what to think. It blocks bucket use of lava just fine, but when I use the permissions:
    blockalarm.bypass.place
    blockalarm.bypass.bucket
    My users still can't use the lava bucket.

    Here is what I'm using in config.properties:
    protect-crafting=false
    327=ban

    And my permissions group.yml: (Note: HomeX commands work just fine)
    Code:
    groups:
        B1:
            default: true
            info:
                prefix: '&0'
                suffix: ''
                build: true
                interact: true
            permissions:
              - 'HomeX.*'
              - 'blockalarm.bypass.place'
              - 'blockalarm.bypass.bucket'
        B2:
            default: false
            info:
                prefix: '&0'
                suffix: ''
                build: true
                interact: true
            inheritance:
              - 'B1'
            permissions: []
        B3:
            default: false
            info:
                prefix: '&0'
                suffix: ''
                build: true
                interact: true
            inheritance:
              - 'B2'
            permissions: []
        Mod:
            default: false
            info:
                prefix: '&0'
                suffix: ''
                build: true
                interact: true
            inheritance:
              - 'B3'
            permissions: []
        Admin:
            default: false
            info:
                prefix: '&0'
                suffix: ''
                build: true
                interact: true
            inheritance:
              - 'Mod'
            permissions:
              - '*'
     
  9. Offline

    instipod

    I am aware of the problem with Permissions and am looking into it.
     
    pucky likes this.
  10. Offline

    Junrall

    Thank you. ;)
     
  11. Offline

    pucky

    Yer, i am getting the same errors. How long will it be till permissions are patched?
     
  12. Offline

    OZ4RK

    For some reason in order for this plugin to work on my server, the player has to be deopped in order to be watched for blocks. Otherwise groups without bypass node can still place. Not sure if this is a part of the permissions errorthat is above...
     
  13. Offline

    OZ4RK

    We need a patch ASAP, still very interested in using this plugin on my server!
     
  14. Offline

    instipod

    @OZ4RK, @pucky, @Junrall,

    Alright Everyone,
    The Permissions patch is out! Tell me if it works on your server. Also, You will need Spout now instead of BukkitContrib.
     
  15. Offline

    -=Dark-Slayer=-

    This seems like a good plugin.
    One question i have for now is that could you rename /banlist to something like /ba list?
     
  16. Offline

    OZ4RK

    Ok, I need some help. I seem to still be having the same issue with permissions as before the latest patch. Moderators and groups with the 'blockalarm.bypass.place' node still CAN NOT place banned items. Here is my moderator group from permissions. Don't really know what else to show you...
    Code:
    Moderator:
            default: false
            info:
                prefix: '&a['
                suffix: '&a]&f'
                build: true
            inheritance:
            - Member
            permissions:
            - delayedstop.start
            - delayedstop.cancel
            - gianttrees.build
            - graveyard.*
            - jail.command.*
            - tpp.mod.*
            - WeatherControl.*
            - 'PressurePort.Break'
            - 'PressurePort.Build'
            - 'citizens.*'
            - 'blockalarm.admin'
            - 'blockalarm.bypass.place'
    Maybe it's just some small thing I overlooked. Hopefully you can help.
     
  17. Offline

    Muffin89

    Would we awesome if you could add limit on diffrent ids.

    Like you are only able to place 10 tnts, when they explode your able to place another 10 tnts.
     
  18. Offline

    Junrall

    Add a way to block flint and steel and this thing will be even better!
    Nice work!
     
  19. Offline

    Tagz

    Is this working?
    I've installed it, it does work for blocking the item, however the permission nodes don't seem to be working to allow certain people with those nodes to place those blocks.
     
  20. Offline

    sza22

    blockalarm.admin works for me, but all of the blockalarm.bypass. do not work for me. please fix this ASAP!
     
  21. Offline

    nathanisme

    can please update this or is there any other plugon that looks like this one?
     

Share This Page