[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

    Nokturn

    Nice Plugin.
    It runs well on the Server and i havenĀ“t detected any problems yet.
     
  3. Offline

    IIGoldII

    Hm. Permissions has Anti-Build integrated. But I guess it's useful for PB users.
     
  4. Offline

    Quick_Wango

    The AntiBuild of Permissions only prevents building (as the name indicates).
    My plugin can prevent the whole interaction with the world
     
  5. Offline

    IIGoldII

    So, this means the player can't hit mobs, or pickup items from the ground?
     
  6. Offline

    monotonehell

    Just a suggestion; even without build rights, new players can grief buildings by leading creepers into them. Either intentionally or by accident. -- Would be good if your plugin also stopped creepers targeting the new player group.
     
  7. Offline

    Quick_Wango

    nice idea, i see what I can do :)
     
  8. Offline

    Tauryuu

    Will the "no pick up" feature work in the future? :)
     
  9. Offline

    Quick_Wango

    the player can not damage other players or mobs and no item pickup is actually implemented, but the message would spam the user so it's currently disabled

    New version released!

    Changes:
    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

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

    Liam Allan

    What about not allowing them to generate chunks?
     
  11. Offline

    Quick_Wango

    That's currently not possible, because the CHUNK_GENERATE event still doesn't exist
     
  12. Offline

    Liam Allan

    Ok. But if it comes out, Will you add it. And that event would come in handy for my plugin :D
     
  13. Offline

    Quick_Wango

    Of course I would^^ There are more developers waiting for that event
     
  14. Offline

    EdTheLoon

    Is this in response to this plugin request? If so, you should tell the poster :)
     
  15. Offline

    Liam Allan

    Oh, I guessed he was because he posted on it first
     
  16. Offline

    Quick_Wango

    I actually made it for my server and then decided to release it^^
     
  17. Offline

    Liam Allan

    Yeah, I made BlockLog for my friend. and I decided to release it too :D
     
  18. Offline

    Quick_Wango

    I'm currently developing some other plugins for my server which will go public as well once i have tested them enough

    you can see them on my github^^
     
    Liam Allan likes this.
  19. Offline

    Kalexer

    This Plugin is AWESOME!
    I'll test it later, but what I can tell from reading the features it would awesomely help me fighting griefer problems,
    keep up the good work!
     
  20. Offline

    Quick_Wango

    That's what I planned :)
     
    Liam Allan likes this.
  21. Offline

    Kalexer

  22. Offline

    Quick_Wango

    I try to fix that now.

    It works just fine for me. Can you explain your problem more detailed?

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

    badbh222

    @Quick_Wango Couple of problems I've spotted:

    1. In your Block Listener, you have this:

    Code:
        @Override
        public void onBlockPlace(BlockPlaceEvent event)
        {
            final Player player = event.getPlayer();
            if (!this.plugin.can(player, "pvp"))
            {
                event.setCancelled(true);
                this.plugin.message(player, "build");
            }
        }
    Checking for the "AntiGuest.pvp" permission where it should be checking for "AntiGuest.build", which leads me to number 2:

    2. In the OP you have stated "AntiGuest.fight" but in the source you use "AntiGuest.pvp"


    They're the only things stopping me from using this plugin right now. :D

    Combined with an auto-permission-group-promoting password plugin, this will be awesome.
     
  24. Offline

    Quick_Wango

    1. fixed that, new version online
    2. I should take more time to write the thread and the readme^^

    Changes:
    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
     
  25. Offline

    badbh222

  26. Offline

    Hacr

    Thank you!!

    I have been waiting for this sort of plugin a long time since the "Guestprev" got [Inactive]

    :D :D :D
     
  27. Offline

    Quick_Wango

    We too, so I finally made it myself :)
     
    Macintosh0 likes this.
  28. Offline

    DanCraft

    Can you add a command like /allow [username]
    Because I want to be able to build, not just see what i'm built, also I wan't ops to be able to build, can you either add the command I said or make it so ops can build?
    If there is a way already can you tell me? Because the permissions looks like its for everyone, not just guests.
     
  29. Offline

    Quick_Wango

    You can do that by giving the player the specific (or all) permission(s)
    That OPs can always everything was just implemented^^

    New version released!

    Changes:
    Version 1.2.0
    • OPs can now always do everything

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

    DanCraft

    Sorry not very good with plugins, just started, so now all OPs can do everything normally and guests can't?
     

Share This Page