[SEC] AntiBuild v1.5.0 - Prevent building for untrusted users [1060]

Discussion in 'Inactive/Unsupported Plugins' started by kroimon, Mar 2, 2011.

  1. Offline

    kroimon

    AntiBuild v1.5.0

    After Nijikokun abandoned some of her great plugins, I decided to take care for this simple but useful plugin.
    It still only implements the "build" info field for Permission plugins and nothing more, so you still need the Permissions plugin, either using Nijikokun's original version or the new one by TheYeti. The new GroupManager plugin works also through it's FakePermissions helper.
    Please note that you don't need this plugin for TheYeti's Permissions 2.5+ as AntiBuild is already included in these versions.

    [Download]
    Source code at GitHub.

    Requires (last tested recommended versions):
    • CraftBukkit 1060
    • Permissions plugin, one of
    How to use this plugin:

    This plugin prevents building for user groups that have the 'build' info field set to false in the Permissions configuration, like in this example for group 'Default':
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            permissions:
                - 'foo.bar'
    
    Since version 1.3, users without build rights get a message telling them "You don't have permission to build!" when they try to place or destroy blocks.
    You can change this message by editing the plugins/AntiBuild/config.yml which gets created after the first run. An empty message is allowed and results in no message being send (to mimic the behavior of previous versions).

    Since version 1.4, it is also possible to block most attempts to interact with the world. This has to be enabled in plugins/AntiBuild/config.yml by setting interact.check to true. You then have to explicitly state which groups are allowed to interact with the world and which are not by setting a group variable similar to the 'build' flag with the name 'interact' as in the following example:

    Code:
    groups:
        Guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
                interact: true
            permissions:
                - 'foo.bar'
    
    Changelog:
    • 1.5.0 (8 Downloads during beta)
      • Prevent placing and destroying of paintings (according to build flag)
    • 1.4.1 (1,379 Downloads)
      • Added configurable cooldown
      • Restructured configuration
    • 1.4.0 (1,131 Downloads)
      • Added possibility to prevent world interactions
    • 1.3.1 (871 Downloads)
      • Updated to be compatible with 602+
    • 1.3 (482 Downloads)
      • Added configurable message to players without build permission
    • 1.2 (764 Downloads)
      • Made multi-world support optional for older Permission plugins < 2.1
    • 1.1 (43 Downloads)
      • Cleaned up code a lot
      • Adopted API changes
      • Multi-world support
    • 1.0 (original thread)
      • Initial release
    Thanks to Nijikokun for her great work!
     
    garfield, MonsieurApple and kahlilnc like this.
  2. Offline

    anon

    Works for me :D
    Using groupmanager 1.0
    Thanks
     
  3. Offline

    TnT

  4. Offline

    anon

  5. Offline

    TnT

    The comment was meant for the dev. He needs to list that according to the submission guidelines.

    Also, how does this plugin work? Assume I have never used the original plugin (its true, I don't use it) - how would I know what to do with this plugin?
     
  6. Offline

    Apocist

    It works for me on GroupManager 0.99d (iffy about 1.0 still). Thanks kroimon!
     
  7. Offline

    kroimon

    Added to first post :)
     
  8. Offline

    TheShadow777

    works perfect, thanks :) (cb build 487)
     
  9. Thanks :D And wait, Niji is a SHE? And also, she abandoned all her plugins? I didn't know that D: Has she completely stopped coding? D:
     
  10. Offline

    TheYeti

    Cool, thanks for doing this. I didn't even think to release this as a standalone for people using the older plugins or groupmanager. Was more focused on other things.
     
  11. Offline

    pabbie

    is this working on 493?
     
  12. Offline

    kroimon

    Yepp just checked it: works. Updated first post.
    BTW: Why don't you just test that yourself? -.-
     
  13. Offline

    Andreas Brisner

    Except that Nijikokun is a guy, yeah :) (No, he is not a female) :)
     
  14. Offline

    kroimon

    According to his/her/its profile, Nijikokun is "Plugin Developer, Female". So I respect that wish and call her accordingly ;-) It simply doesn't matter for me :cool:
     
  15. Offline

    Moronmaster

    For some reason, my groups.yml file get's reset everytime i reload GroupManager. This is my code:

    Code:
    groups:
      Guest:
        default: true
        permissions:
        - essentials.afk
        - essentials.back
        - essentials.help
        - essentials.home
        - essentials.kit.dirt
        - essentials.kit.glass
        - essentials.kit.sand
        - essentials.kit.stone
        - essentials.kit.tools
        - essentials.list
        - essentials.motd
        - essentials.rules
        - essentials.sethome
        - essentials.spawn
        - essentials.tp
        inheritance: []
        info:
          prefix: ''
          build: false
          suffix: ''
      Builder:
        default: false
        permissions:
        - woolcolor.spawn
        inheritance: []
        info:
          prefix: '&e'
          build: false
          suffix: ''
      Moderator:
        default: false
        permissions:
        - '*'
        inheritance: []
        info:
          prefix: '&2'
          build: false
          suffix: ''
      Admin:
        default: false
        permissions:
        - '*'
        inheritance: []
        info:
          prefix: '&5'
          build: false
          suffix: ''
    
    I have a couple of plugins installed, but those that could be causing trouble would be Essentials, GroupManager, FakePermissions and iChat
     
  16. Offline

    kroimon

    Right... so... what exactly has this to do with AntiBuild? ;-)
     
  17. Offline

    Moronmaster

    Hmm..... good point. I just installed it, found an error and came to think of this mod first of all.
    Since i'm not that good at programming Java, i thought that maybe AntiBuild read the groups.yml file on boot-up. Guess not.
     
  18. Offline

    kroimon

    Nopy, I'm just using the methods Permissions (or GroupManager via FakePermissions) offers, so your error sounds like GroupManager is the cause...
     
  19. Offline

    Stig Engfdal

    Is there a possibillity to add a message when someone without the rights to build tries to build? or is there any plugins that does?
     
  20. Offline

    Mattie112

    GREAT thanks!
     
  21. Offline

    Jonathan Bloom

    I'd also love to see a configurable message like that.
     
  22. Offline

    kroimon

    Then have fun with version 1.3 ;-)
     
  23. Offline

    Jonathan Bloom

    Thank you so much! This is incredibly useful.
     
  24. Offline

    Stig Engfdal

    Thanks alot :D
     
  25. Offline

    Jonathan Bloom

    Either this plugin or another one is causing my guests to not be able to open doors. Or would this be a WorldGuard region issue?
     
  26. Offline

    kroimon

    Edit: Tested it, AntiBuild alone should not blocked your users from opening doors...
     
  27. Offline

    kahlilnc

    What does herp.derp and derp.derp mean.?.
    And does - 'bar.foo' the oppisite of - 'foo.bar'
     
  28. Offline

    kroimon

    You're drunk, right?
     
    kahlilnc likes this.
  29. Offline

    kahlilnc

    No this is serious on my permssions it says these things on there.
     
  30. Offline

    kroimon

    Then please ask in the thread of the permission plugin you're using: GroupManager or Permissions. This is more a problem of the basic understanding what permissions are, not AntiBuild related...
     

Share This Page