[Inactive] [SEC] AutoRegionGuard v0.5 - 'Players' protect regions simply by building [860]

Discussion in 'Inactive/Unsupported Plugins' started by friesnadrink, May 1, 2011.

  1. Offline

    friesnadrink

    AutoRegionGuard- 'Players' protect regions simply by building
    Version: 0.5

    This is my first go at java and I welcome any input other developers might have on my plugin. I hope you guys like it!

    AutoRegionGuard is different from traditional protection plugins because players don't need to use any commands to gain its benefits. Players can 'claim' a chunk (16x16 square of blocks sky to bedrock) just by placing 16 blocks within that chunk. This protects their structures and chests from grievers/other players that they have not added to their 'friends list'. One of the hopes I have of this plugin is that mods will need to do less intervening and can instead focus on other things. Also includes /god.

    Features:
    • Claimed regions are protected from other players placing/breaking blocks/lava/water
    • Unauthorized players cannot open chests in claimed regions
    • Automatically claim a chunk by placing 16+ blocks in it
    • Prevents creeper explosions if they would affect a claimed region
    • Godmode
    • Ops/Mods bypass protection
    • Right-click with 'String' (now configurable) to get chunk info
    • Right-click with 'Feather' (now configurable) to unclaim a chunk (arg.bypass allows unclaiming of others' chunks)
    Download:
    Latest Jar
    Source

    Commands:
    Permission node
    Description

    /arg toggle
    arg.user
    Turns on/off(default) autoclaim

    /arg claim
    arg.claim
    Claim the chunk you are standing in

    /arg info [<world> <xvalue> <zvalue>]
    arg.user
    Get info about the chunk you are standing in or specified


    /arg unclaim [<world> <xvalue> <zvalue>]
    arg.user
    Unclaim the chunk you are standing in or specified

    /arg friends
    arg.user
    Displays your list of friends

    /arg addfriend [playername]
    arg.user
    Adds a friend to your friends list

    /arg removefriend [playername]

    arg.user
    Removes a friend from your friends list

    /arg save
    arg.saveload
    Saves Regions.txt and FriendsList.txt

    /arg load
    arg.saveload
    Loads Regions.txt and FriendsList.txt

    /god [player]
    arg.god
    Enables/Disables godmode

    Changelog:

    Version 0.5
    • fixed an ArrayIndexOutOfBoundsException when adding/removing friends
    • flint and steel can no longer be used to claim
    • fixed /arg toggle problem that involved typing the command twice to truly toggle
    • added explosionprotection(true/false) as an option in arg.properties
    • added protectchests(true/false) as an option in arg.properties
    • added /arg give <playername> [<world> <chunkx> <chunkz>]. Must have arg.player(and arg.bypass if you dont own it). Gives <playername> the specified chunk.

    Version 0.4
    • added fire protection for claimed chunks(fire won't spread or destroy blocks in claims)
    • /arg [removeplayer, save, load, checklastonline] can all be used from the console
    • added properties file to change many different settings such as autoclaim being on/off by default
    • added a maximum for owned chunks (configurable setting, bypassed by arg.bypass)
    • fixed /arg claim permission issue
    • added /arg unclaim [<world> <xvalue> <zvalue>] for long distance unclaiming
    • added /arg info [<world> <xvalue> <zvalue>] for long distance info
    Version 0.3
    • /arg removeplayer [playername]. Must have arg.bypass. Removes all claims [playername] has.
    • scheduled saves (every 30min)
    • ARG now creates LastOnline.txt. Format [playername];yyyy/MM/dd/HH
    • expire regions for inactive players
    • /arg checklastonline. Must have arg.saveload. Manually executes code to expire players.
    • Changed permission node for /arg claim to arg.claim
    Version 0.2.1
    • Fixed incompatibility with EssentialsChat (Thanks iggiiggi)
    Version 0.2
    • Added chunk info tool. Must have arg.user. To use right click a block while holding
      string.
    • Added /arg info. Must have arg.user.
    • Added unclaim tool. Must have arg.user (and arg.bypass if you dont own it).To use right click a block while holding feather.
    • Added /arg unclaim. Must have arg.user (and arg.bypass if you dont own it).
    • Added /arg friends. Displays your list of friends. Must have arg.user.
    • Fixed a error when using /god on other players
    • Added /arg toggle. Must have arg.user. Turns on/off(default) autoclaim.
    Version 0.1
    • Releasing my awesome plugin
    Big thanks to @Sammy and @Samkio for their awesome tutorials and posts.
     
    marti.2001 and GreyBishop like this.
  2. Offline

    Buckethead

    sigh.... exactly what i want but it doesnt work in 1337 i bet
     
  3. Offline

    sleite

    This was a great plug-in (when it worked). I have found several alternatives, but not are as simple as this one was.

    Try this one: http://dev.bukkit.org/server-mods/simple-region-market/

    And if that doesn't work, give this one a try:
    http://forums.bukkit.org/threads/ad...-simple-predefined-region-renting-1060.25162/

    Only thing I dont like about the last one is that it requires users to build a fence around the region they want to protect (not practical for underground stuff).
     
  4. Offline

    Buckethead

    ty i will consider those but as it turns out it does work
     
  5. Offline

    sleite

    Really? Wow .. what server build/version are you using? It stopped working for me. That, and I wanted more control over how much land people can claim (eg. iConomy support). I still have not found a suitable alternative - still looking. :)
     
  6. Offline

    Buckethead

    anybody else have th problem where autoclaim feels like working sometimes and other tikmes doesnt

    what does god mode do

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

    Buckethead

    im using build 1337
     
  8. Offline

    kuk

    Now ARG compiled for 1337

    added protection of fence door
    fixed friends list
    fixed player names with '

    Download: <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
  9. Offline

    Buckethead

    what does god mode do and ty kuk
     
  10. Offline

    kuk

    in my version is god mode removed ... in original it preventing from one type of monster damage
     
  11. Offline

    JoeMethven

    I would love it if it were possible to support the Faction Plugin, so that the SafeZone cannot be claimed over and /arg claim will only work within wilderness areas, like a setting you could add the the config if possible!
     
  12. Offline

    Buckethead

    This still seems to work in 1.0 as far as it seems

     
    Last edited by a moderator: Dec 14, 2016
  13. Offline

    aneszej

    Can anyone upgrade this to latest bukkit version ? to work on 1.1 version ? Please.
    nvm made it work. What are functions for this thing? I don't know them so i can't use this with permissions, i tried arg.addfriend and that wasn't working ;( please answer me.
     
  14. Offline

    Buckethead

    /arg [toggle, info, addfriend, removefriend, friends, unclaim, claim, removeplayer, save, load]
    Example:

    /arg toggle
    /arg addfriend someguyhere
     
  15. Offline

    SissyZ

    I want to ask about permissions.When I add arg.user to one of the groups does it mean that the can use all these commands :
    /arg toggle
    arg.user
    Turns on/off(default) autoclaim

    /arg info [<world> <xvalue> <zvalue>]
    arg.user
    Get info about the chunk you are standing in or specified


    /arg unclaim [<world> <xvalue> <zvalue>]
    arg.user
    Unclaim the chunk you are standing in or specified

    /arg friends
    arg.user
    Displays your list of friends

    /arg addfriend [playername]
    arg.user
    Adds a friend to your friends list

    /arg removefriend [playername]

    arg.user
    Removes a friend from your friends list ?

    I think he means in permissions , not commands.

    I have the same problem and I can't help. :(

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

    Buckethead

    [quote uid=90574123 name="SissyZ" post=953315]I want to ask about permissions.When I add arg.user to one of the groups does it mean that the can use all these commands :
    /arg toggle
    arg.user
    Turns on/off(default) autoclaim

    /arg info [<world> <xvalue> <zvalue>]
    arg.user
    Get info about the chunk you are standing in or specified


    /arg unclaim [<world> <xvalue> <zvalue>]
    arg.user
    Unclaim the chunk you are standing in or specified

    /arg friends
    arg.user
    Displays your list of friends

    /arg addfriend [playername]
    arg.user
    Adds a friend to your friends list

    /arg removefriend [playername]

    arg.user
    Removes a friend from your friends list ?[/quote]

    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
  17. Offline

    SissyZ

    What is the permission node for a group to build in a claimed place ?
     
  18. Offline

    Buckethead

    arg.bypass and arg.player
     
  19. Offline

    D417

    It would be very nice, if someine will make the same plugin for new, 1.2 system, with new chunks, 16x16x16.

    Plugin is so simple in exlpuatation, so it became excellent for most servers.
     
  20. Offline

    recon88

    I know, it's one of the best things which were every created =)
    And I updated it on every new RB and added a lots of new stuff for my server.
    The code is completly new now.
    Talked to the author too. He gave me his ok to take this project over and i think i will release it on 1.2.

    BUT i will never change the chunksystem to 16x16x16.. it will be (as it is now) 16x16xmaxheight. That's how arg ever worked
     
  21. Offline

    FlyingPIes155

    wuts da permission node thingy for byapssing protection?
     
  22. Offline

    Buckethead

    arg.bypas and arg
    arg.bypass and arg.player
     
  23. Offline

    FlyingPIes155

  24. Offline

    D417

    But it's kinda be a "little" uncomfort for new chunks...
    And, this chunks is still are testing versions, who knows, maybe in future limit will be only space. And after some point player will start choking without air.
    Maybe ... Can you do two versions? Please.
     
  25. Offline

    Sunset

    Hi Dudes

    Could plz someone rewrite this plugin for bukkit 1.2
    This would be awesome.
    I think its the best protection plugin out there.
    Its a shame to let this plugin be unsupported.
     
    Buckethead likes this.
  26. Offline

    Buckethead

    Yes please someone update for 1.2.3

    please update arg PLZZZZZZZZZZZZZ :>

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

    ChromeSkull

    I look forward to your build :)
     
  28. Offline

    noamro

    Work on 1.2.3?
     
  29. Offline

    niki5051

    Guys pls update or rewright the plugin for 1.2.3 cuz I have seen a lot of protection plugins but this one is the best cuz the players dont have to use any commands or anything they just build
    Thanks in advance
     
  30. Offline

    Chiller

    Here you go: <Edit by Moderator: Redacted mediafire url>
    *The original project AutoRegionGuard is open source, I have the right to modify and redistribute it*
     
    Last edited by a moderator: Dec 14, 2016
    Sunset and D417 like this.
  31. Offline

    noamro

    Thank you so much man!
     

Share This Page