[SEC] AntiGuest v2.4.0 - Available on BukkitDev

Discussion in 'Archived: Plugin Releases' started by Quick_Wango, Aug 10, 2011.

  1. Offline

    Quick_Wango

    Thread outdated!




    AntiGuest - Prevent guests from griefing!
    Version: v2.1.0

    AntiGuest prevents guests from doing specific things like building and fighting, which can be used to grief.

    The plugin uses permissions to determine whether a player is allowed to do something. If a player HAS the specific permission, he will be able to do the action, otherwise a configurable message will be printed to his chat telling him that he is not allowed to do that.
    There are no commands to to promote a guest to a new group, because the supported permissions systems (SuperPerms and Permissions) usually provide commands for promoting.

    Features:
    • prevents guests from (configurable):
      1. using levers, buttons, doors and/or pressureplates
      2. opening chests and/or doors
      3. crafting, cooking and/or dispensing
      4. eating cakes
      5. fishing
      6. sleeping in beds
      7. using buckets
      8. opening his inventory (might not work)
      9. building
      10. fighting
      11. getting targeted by monsters
      12. picking up and/or dropping items
      13. using vehicles
      14. spamming the chat or completely chatting
    • all messages are configurable and support color codes (&0, &1, &2, ... , &f)
    Download AntiGuest
    Source Code
    Test it on Parallel-Universe.de

    Installation:
    1. put the AntiGuest.jar into your plugins folder
    2. restart/reload your server
    Permissions:


    • AntiGuest.* - Allows the player to do everything
      • AntiGuest.build - Allows the player to build
        • AntiGuest.placeblock - Allows the player to place blocks
        • AntiGuest.breakblock - Allows the player to break blocks
      • AntiGuest.interact - Allows the player to interact with the world
        • AntiGuest.lever - Allows the player to use levers
        • AntiGuest.button - Allows the player to push buttons
        • AntiGuest.door - Allows the player to open and close doors
        • AntiGuest.bed - Allows the player to sleep in beds
        • AntiGuest.fish - Allows the player to fish
        • AntiGuest.bucket - Allows the player to use buckets
        • AntiGuest.cake - Allows the player to eat cake
        • AntiGuest.pressureplate - Allows the player to trigger pressure plates
      • AntiGuest.fight - Allows the player to fight
        • AntiGuest.pvp - Allows the player to fight
        • AntiGuest.monster - Allows the player to get targeted by monsters
      • AntiGuest.item - Allows the player to do item related things
        • AntiGuest.pickup - Allows the player to pickup items
        • AntiGuest.drop - Allows the player to drop items
      • AntiGuest.craft - Allows the player to do crafting related things
        • AntiGuest.furnace - Allows the player to furnace
        • AntiGuest.workbench - Allows the player to craft
        • AntiGuest.dispenser - Allows the player to dispense
        • AntiGuest.chest - Allows the player to use chests
        • AntiGuest.inventory - Allows the player to open his inventory
      • AntiGuest.vehicle - Allows the player to use vehicles
      • AntiGuest.chat - Allows the player to chat
      • AntiGuest.spam - Allows the player to chat as fast as he wants
    Blue permissions are aliases for their subordinated permissions. These will only work with SuperPerms (e.g. PermissionBukkit)

    Default Configuration:

    Show Spoiler
    Code:
    debug: true
    preventions:
        pickup:
            message: '&4You are not allowed to pickup items!'
            enable: true
        pvp:
            message: '&4You are not allowed to fight!'
            enable: true
        monster:
            message: '&4You are not allowed to get targeted by monsters!'
            enable: true
        fish:
            message: '&4You are not allowed to fish!'
            enable: true
        drop:
            message: '&4You are not allowed to drop items!'
            enable: true
        bed:
            message: '&4You are not allowed to sleep!'
            enable: true
        vehicle:
            message: '&4You are not allowed to use vehicles!'
            enable: true
        bucket:
            message: '&4You are not allowed to use buckets'
            enable: true
        door:
            message: '&4You are not allowed to interact with doors!'
            enable: true
        pressureplate:
            message: '&4You are not allowed to pressure the plate!'
            enable: true
        chest:
            message: '&4You are not allowed to use chests'
            enable: true
        button:
            message: '&4You are not allowed to push buttons!'
            enable: true
        furnace:
            message: '&4You are not allowed to cook!'
            enable: true
        dispenser:
            message: '&4You are not allowed to dispense!'
            enable: true
        workbench:
            message: '&4You are not allowed to craft!'
            enable: true
        spam:
            message: '&4Don''t spam the chat!'
            enable: true
            lockDuration: 2
        breakblock:
            message: '&4You are not allowed to break blocks!'
            enable: true
        lever:
            message: '&4You are not allowed to use levers!'
            enable: true
        placeblock:
            message: '&4You are not allowed to place blocks!'
            enable: true
        cake:
            message: '&4The cake is a lie!!'
            enable: true
        chat:
            message: '&4You are not allowed to chat!'
            enable: true
    


    Changes:

    Version 2.1.0
    • Added complete chat prevention
    • Added cake prevention
    • Fixed vehicle prevention to include powered minecarts
    Older changes (open)



    Version 2.0.3
    • Fixed breaking vehicles
    Version 2.0.2
    • Fixed a typo in the permissions
    Version 2.0.1
    • Added dispenser prevention
    • removed useless config entry of inventory prevention, because it's impossible
    • new preventions will be automaticly added to the config (no deleting needed)
    Version 2.0.0

    • Splitted the interact prevention into lever, button, pressureplate, door (including trap doors), chest, workbench, furnace and monster
    • Added bed prevention
    • Added item drop prevention
    • Added bucket prevention
    • Added fishing prevention
    • Added a config entry to enable or disable the debug mode
    • Changed the configuratiuon file a bit (You should delete your old config file)
    Version 1.2.1
    • Fixed PAINTING_BREAK checking the wrong permission if only the interaction check was enabled
    • Made the chat lock for spamming configurable (in seconds)
    Version 1.2.0
    • OPs can now always do everything
    Version 1.1.2
    • fixed block place checking for the wrong permission
    Version 1.1.1
    • Fixed the painting break event not being registered when only the build prevention was enabled
    Version 1.1.0
    • Added SuperPerms support, Permissions is now optional
    • Split interaction into interaction and vehicles (minecarts, boats)
    • interaction also prevents mobs from targeting guests
    • Added spam prevention
    • enabled pickup prevention again
    Version 1.0.0
    • Initial release
     
    Macintosh0 likes this.
  2. Offline

    Quick_Wango

    No it doesn't :) Just use the commands of your permissions plugin to assign a group with the permissions needed
     
  3. Offline

    GameOverRules

    Ok I tried. And it said internal error.
     
  4. Offline

    GameOverRules

    ok please help fast. people that do not have the permission. first when they try to buil all it is saying is that they are not allowed to interact with the world. Not the custom messages that you can set. and they can stll hurt people. what is wrong?
     
  5. Offline

    Xickle

    Would it be possible to make the plugin give players their building rights with a in-game command, without having to make a new guest group in the permissions file and keep putting members into the "non-guest" group?
     
  6. Offline

    Quick_Wango

    No, as the permissions plugins usually have commands to do that. Why should I add a command, which acutally exists already?
    You could even write a macro for CommandHelper if you don't like the command which your permissions plugin provides

    New version released!
    Delete your old config file or the plugin might throw errors at you!

    Changes:

    Version 2.0.0
    • Splitted the interact prevention into lever, button, pressureplate, door (including trap doors), chest, workbench, furnace and monster
    • Added bed prevention
    • Added item drop prevention
    • Added bucket prevention
    • Added fishing prevention
    • Added a config entry to enable or disable the debug mode
    • Changed the configuratiuon file a bit (You should delete your old config file)

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

    Fohdeesha

    wooo!

    @Quick_Wango -
    OK, found a real problem with v2 - guests can definitely still get into and take stuff from furnaces and dispensers. And yes, furnace protection is enabled in the config file. Everything else seems to be working great.

    Oh, and I have inventory use not allowed, but I can definitely still use my inventory and move stuff around, take from dispensers/furnaces.

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

    Quick_Wango

    the inventory problem is known and seems to be a bukkit bug, but I'm not sure yet.
    furnaces should work, but I forgot to check for a dispencer.
    I'll try to fix that.
     
  9. Offline

    Tealk

    is it possible that permissions 3.x does not run?
     
  10. Offline

    Quick_Wango

    It should work, but I test in a view minutes when the other problems are fixed

    It seems like there is a strange problem with permissions.
    which exact version of permissions (or any permissions bridge) are you both using?

    Everything is working as expected, except the inventory prevention. I'll upload the now version in a few minutes

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

    Fohdeesha

    Hows that? I can definitely get into furnaces (and dispensers) and definitely have the furnace prevention turned on. Looking forward to your update!

    edit: I'm using permissions 2 (2.7.4)
     
  12. Offline

    Quick_Wango

    New version released!

    Tested with PermissionBukkit and Permissions

    Changes:

    Version 2.0.1
    • Added dispenser prevention
    • removed useless config entry of inventory prevention, because it's impossible
    • new preventions will be automaticly added to the config (no deleting needed)
     
  13. Offline

    chuiby

    Your AntiGuest.craft does not allow opening chests, AntiGuest.fight does not allow "being targeted by monsters"...

    There is still a few bugs, take a look at your subordinated permissions.
     
  14. Offline

    Quick_Wango

  15. Offline

    JohnPulse

    Hi there!
    Can you block all the guest chat with this plugin?
    Maybe with a frase respond send to the client like "You can't chat yet, please do [insert bossy like request here]"
    Regards,
    John
     
  16. Offline

    Quick_Wango

    I'll add that
     
  17. Offline

    JohnPulse

    Thanks!
    And also thank you for your work :)
    Regards,
    John
     
  18. Offline

    LufiaTM

    Hi,
    i have some trouble with AntiGuest.fight
    i set it on true, but the Monsters aren't allowed to target me .... it works only with AntiGuest.monster for me, I'm using PermissionsBukkit 1.2
    I'm not directly in this Group with the permission, it is from this "inheritance" thing

    Ohh and which permission do i need for destroying a minecart? :(


    Edit: I think i found the mistake in your plugin.yml Line 59 typing mistake
    AntoGuest.monster: true
     
  19. Offline

    Quick_Wango

    New version released!
    The chat prevention is coming soon

    Changes:

    Version 2.0.2
    • Fixed a typo in the permissions

    It's AntiGuest.breakblock

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

    LufiaTM

    I tried it, as long as i am Op it works, but without op nothing happen =/
     
  21. Offline

    Quick_Wango

    New version released!
    I hope everything works now^^

    Changes:

    Version 2.0.3
    • Fixed breaking vehicles
     
  22. Offline

    LufiaTM

    Everything fine
    thank you :)
     
  23. Offline

    Expatcat

    Hey... any chance for a Guest welcome message when they log in? Kinda like "Message of the Day" for Essentials... a message only Guests see when they log in.
     
  24. Offline

    chuiby

    Support superperms?
     
  25. Offline

    Quick_Wango

    New version released!
    Tested on Parallel Universe with PermissionBukkit!

    I will drop the Permissions support as soon as our server switches over to PermissionBukkit.

    Changes:

    Version 2.1.0
    • Added complete chat prevention
    • Added cake prevention
    • Fixed vehicle prevention to include powered minecarts
     
  26. Offline

    xsolar66

    :) I have a request-
    I disabled block placement and block destroy in my world - I want my users to be able to explore the map using minecarts, without altering it. However they cannot place a minecart as that counts as a "block place".

    I think that, surely, if someone was to have the permission AntiGuest.vehicle, they should be allowed to place minecarts and boats.
     
  27. Offline

    Quick_Wango

    I'll think about it.
    1.8.1 update comes this weekend.
    I will also create a dev.bukkit.org page, so this thread will by inactive after the next update
     
  28. Offline

    zpetty33

    I can confirm that this does with with the 1.8.1 version of Bukkit. Also, this plugin is great! Nice work!
     
  29. Offline

    Quick_Wango

    It does except the fence doors, but i'll update it tomorrow
     
  30. Offline

    zanetheinsane

    Running MC1.81 with PermissionsBukkit and everything seems to be working except preventing guest chat. It's actually okay since I want my guests to be able to chat, but setting it to false doesn't prevent them.
     
  31. Offline

    Quick_Wango

    Last edited by a moderator: May 18, 2016

Share This Page