Inactive [SEC/MECH/ECON] Residence v2.4.2 - Self serve area protection system! Buy/Sell Land! Economy! [1185]

Discussion in 'Inactive/Unsupported Plugins' started by bekvon, Mar 21, 2011.

Thread Status:
Not open for further replies.
  1. Offline



    v2.4.2 Released - 9/24/2011​
    See the change log for details.​
    Everyone using PermissionsEx, Essentials, or anything else besides the regular permissions plugin or PermissionsBukkit should add or change this in their config under the Global section:
    LegacyPermissions: true
    As of 2.4.0 the bPermissions plugin is supported directly.​
    As of 2.3.7 the PermissionsBukkit plugin is supported directly.​
    This support is not done through the new built in Permissions that bukkit provides, because there is no way to get a players group using the built in methods. However, by supporting this directly, you can now use the new permissions system while still keeping Residence, and not having to use old permissions at all anymore.​

    Latest Recommended Build
    Version: v2.4.2
    Download: Residence

    Latest Development Build
    Latest Snapshot: Residence.jar
    Latest Config: config.yml

    Developer API: Wiki
    GitHub Source: GitHub
    DevBukkit Project Page: DevBukkit


    Daniel Few (Wiki)​
    Linaks (Residence Logo)​
    SirHedgehog (Code)
    GSValore (Code)​
    Samkio (Wiki Video)​
    JustinGuy (Code)​

    Residence Signs (by KarnEdge)​

    NOTE: All Residence usage information has been moved to the wiki!

    Residence is different from most protection plugins in that it aims for the users to be able to protect their own homes without having to bother the admin to do it. Residence has support for a variety of different protection types including preventing movement through areas, all of which can be configured by the land owner, and limited by the admin.​
    Features (open)

    • Allows players to define protected areas for themselves.
    • Individual permissions for each protected area. Land owner can give / deny permissions globally or to other specific players.
    • Different permissions per land include: move, build, use, pvp, fire, teleport, monsters spawn, damage prevention
    • Support for group permissions on protections.
    • Multi-World support.
    • Teleport system to allow users to teleport to residences.
    • Collision detection system to prevent residences from overlapping.
    • Limits to protected size can be set up by the admin.
    • Limits to number of protected areas per player can be set.
    • Two ways to select land including using the select command, or using a item to select 2 points.
    • Messages when you enter / leave a residence. (customizable)
    • Land "leasing" system which requires users to renew the lease on their protection every X number of days or loose the protection. (off by default, see config file)
    • Recursive Sub-zoning. Create zones within zones, and then zones within those zones...
    • TONS of configuration for admins. Customize every single flag that players can or cannot use in the config file, based on their permissions group.
    • (Optional) IConomy support, can set up cost per X number of blocks protected.
    • (Optional) Permissions support.
    • In-game help / commands descriptions

    • Fix bug affecting some people with the new save system
    • Support for iConomy 6
    • Prevent enderman from messing with blocks in residences with the -build flag.
    • Paintings are now protected properly (Thanks JustinGuy!)
    • Fix Rent auto-renew bug.
    • Fix other miscellaneous small bugs.
    ChangeLog (open)

    • Support for bPermissions
    • Add "/res pset <residence> [player] removeall" command to remove all flags for that player
    • Added console only command "/resworld remove [world]" to remove all residences in a world.
    • "/res remove" now requires confirmation using the "/res confirm" command, before removing a residence.
    • Fixed subzone flag.
    • Fixed a few null pointer exceptions related to the "/res message" command, and a few other issues with it as well.
    • Fixed few cosmetic rent message bugs.
    • Fixed few mispellings...
    - Added name filter to Residences to prevent characters that mess up YML from being used. This should fix many of the errored YML files that people have been getting.
    - Fixed arrow damage in no-pvp zones (bug introduced in the Residence 1060 update).
    - Added a "Permissions Group" line of text into /res limits, this will show your Permissions group as reported by Residence.

    - Fixes to better handle the piston flag, and world "flow" flags (thx JustinGuy :) )
    - "Use" flag now covers trap doors.
    - Lease renewal can now be pulled from the Residence's bank.
    - Buying a residence now causes the default flags to be set for the user who is buying it.
    - Minor fixes to new PermissionsBukkit support (fix message about permissions not being detected when it actually was)
    - Added a few miscellaneous forgotten commands to the in-game Residence help.

    • Added direct support for PermissionsBukkit (doesn't go through the bukkit API)
    • Added LegacyPermissions true/false config option.
    • Support for residence.admin and residence.create permission nodes using new permission system.
    • Recommend using SuperPermsBridge or something that ensures backwards compatibility with old permissions.
    • Few permission changes to hopefully make it work better.
    • Fix for firespread flag with CB1000.
    • Added "piston" flag.
    • Fixes for CB1000
    • Fixes for a few minor bugs, and for concurrent modification issue with the Lease Manager.
    • Removed subzone list from /res info, and gave it its own command that supports multiple pages, /res sublist <residence> <page>
    • If the save file errors, it will now be preserved rather then overwritten, it will be renamed res-ERRORED.yml, the plugin will now disable itself upon error as well unless the StopOnSaveFault option in the config is set to false.
    • Fixed non-working per-world flags.
    • Fixed a few message bugs.
    • Add /resadmin removeall <player> admin command to remove all residences owned by a player.
    • Changed MaxUpDown in the default config to 128...
    • Fixed issue with /res vert still selecting more then the MaxUpDown allowed.
    • Fixed a few initial issues with a couple language localization messages.
    • Removed area list from /res info, use /res area list [residence] or /res area listall [residence] now.
    • New language localization system, upon first run v2.3 will create a Languages folder under your Residence config folder with the default English.yml file.
    • New in-game help system. (part of the new language localization system)
    • All commands now run without admin privileges unless you specify /resadmin before.
    • Added config option to allow rented residences to be modifiable. (PreventRentModify option)
    • Fixes to improve compatibility with Permissions 3.X
    • /res listall now has pages
    • Added the "physics" flag to control block movement. (separated from the flow flag more like)
    • New ResidenceTPEvent, and ResidenceRentEvent API events
    • Fixed residences not being properly removed from lease / rent system, upon deletion.
    • Fixed bug related to default group option in the config.
    • Fixed global "container" flag bug.
    • Fixed some NPE's related to explosions.
    • Added /resload command to load the save file after you make changes to it (UNSAFE, as it does not save residences first, and so you may loose new residences that were just created)
    • Added per residence Blacklist/Ignorelists that will allow you to specify certain block types to be ignored from residence protections, or unable to be placed in residences.
    • Added Server owned land, use /resadmin server <residence> to change the owner to "Server Owned"
    • Added global Ignorelists which allow certain block types to become unprotectable for the whole world / for a specific user group.
    • Fixed a couple bugs with the lease system, including being enabled when it shouldn't be and the lease auto-renew option.
    • Added "/res area replace" command, allows you to resize / move a physical area. If the new area is bigger, it will only charge you for the difference in size.
    • Added 'waterflow' and 'lavaflow' flags which override the flow flag if set.
    • Fixed a bug causing money to still be charged when failing to add a area to a residence.
    • Fix case sensitivity bug in rent system.
    • BOSEconomy support.
    • Essentials Economy support.
    • RealShop Economy support.
    • Added the 'place' and 'destroy' flags, which if used overrule the 'build' flag. These allow you to give only block placement permissions in a certain area, or only block destroy permissions.
    • /res check [residence] [flag] <player> command, this command evaluates if <player> is affected by [flag] at [residence]. You can leave off <player> and it will use your name.
    • Added a LeaseAutoRenew config option, that will cause leases to automatically renew so long as the player has the money to do so. Note that, if economy is disabled this doesn't work, as there would be no point to leases. Needs Testing! :)
    • Global FlagPermission config section, that allows you to give permission to use a flag to all groups, useful for the build / move / use flag that you almost definitely want everyone to have access to. Flags under each individual group will overrule these.
    • You can now set a limits on how deep or how high protections can go into the group, using each groups MinHeight and MaxHeight settings.
    • /res select sky, and /res select bedrock commands, these auto adjust to the above mentioned MinHeight and MaxHeight settings, so it won't select into a area you can't protect.
    • Rent system implemented.
    • Many bug fixes, including proper creeper explosion prevention now. Also, fixed some bugs when renaming residences.
    • New healing flag.
    • The monsters flag has been split up into "animals" and "monsters" now.
    • New Developer API, including custom Bukkit events.
    • New Global CreatorDefault / GroupDefault / ResidenceDefault flag sections to help clean up the Groups section, and remove redundant flags.
    • Probably some other minor things I've forgot :)
    - Residence 2.0 now in alpha testing, core code has been mostly rewritten.​
    - Supports multiple areas per residence using '/res area <add/remove>' commands.​
    - Added new selection commands '/res select expand' and '/res select shift'​
    - Added Predefined permission lists that can be applyed to residences.​
    - Enter / Leave messages now support %player, %owner and %area variables.​
    - Config file has been cleaned up and most things are better named.​
    - Should be fixed to work with newer iConomy versions.​
    - Save system now only uses yml as save format.​
    - Save system wont corrupt the whole file if one residences gets corrupted, you just loose that one residence.​
    - When a residence changes owner, flags are set to default for that owner.​
    - Added '/res default' command to manually reset flags to default.​
    - Released source code for v2.0​

    v1.2.8 - BETA
    - Fixed broken flag setting permissions.​

    v1.2.7 - BETA
    - Fixed chests being able to be opened from outside protected area.​
    - Fixed enter/leave message (hopefully)​
    v1.2.6 - BETA
    - Updated for CB 612 / Minecraft 1.4​
    v1.2.5 - BETA
    - Fixed tiny bug in saving messages.​
    - yml is now the default save format because its more reliable.​

    v1.2.4 - BETA
    - Fixed bug related to fire / ignite event.​
    - Added ability to remove enter / leave messages​

    v1.2.3 - BETA
    - Added a optional different save system, you can now save residences in pure YML format (same format as config files). See the config file for how to enable.​

    v1.2.2 - BETA
    - Fixed TP bug.​

    v1.2.1 - BETA
    - Fixed bug in new saving system.​

    v1.2 - BETA
    - New save system, will attempt to auto-convert from old system.
    - Fixed some permission bugs when not using permissions plugin.​
    - OPs are now residence admins when not using permissions.​
    - Fixed collisions detection issues related to having multiple worlds.​
    - Added global pvp setting.​
    - Added a "flow" flag to control water/lava flow in residences.​
    v1.1.9 - BETA
    - Fixed a severe bug when not using permissions.​

    v1.1.8 - BETA
    - Fixed a subzone bug.​
    v1.1.7 - BETA
    - Added ability to buy and sell land using /res market commands.​
    - Added a land leasing system which can be configured to expire protections if they are not renewed after a period of time. See the /res lease command. (this is off by default, turn it on and customize it in the config)​
    - Implemented a Auto-Save interval. Saves residence areas every X minutes.​
    - Fixed minor onBlockIgnite error.​
    - Added a few admins commands using /resadmin.​

    v1.1.6 - BETA
    - Fixed spaces not working in enter / leave messages.​

    v1.1.5 - BETA
    - Added Enter / Leave messages for Residences, as well as a permission option in the config to allow / deny changing of them.​
    - Fixed residence admins not being able to modify the outside world when using deny build rights outside of residences.​
    - Fixed issue related to default group.​
    - Added a config option to specify the default group.​

    v1.1.4 - BETA
    - Fixed bug in group permissions...​
    v1.1.3 - BETA
    - Changed the configuration vastly again, server admins now have control over every flag for every group.​
    - Group permissions implemented, but in need of TESTING! :)
    - World permission implemented (default world permissions for when you are not in a residence zone)​
    - Fixes subzone collision bug.​

    v1.1.2 - BETA
    - Fixed residence admins still requiring IConomy money.​
    - Fixed a bug with TNT explosions.​

    v1.1.1 - BETA
    - Fixed bug breaking subzone permissions.​

    v1.1 - BETA
    - Recusive sub-zoning, make subzones within zones, and then subzones within those subzones :)
    - Different limits based on permissions group​
    - New setting for choosing the selection tool item id.​
    - Anti-lag configuration option.​
    - Moved some permissions into the config file.​
    - All protections are now OFF by default.​

    v1.0.1 - 3/21/2011
    - Added permissions / config option to disable teleports.​

    v1.0 - 3/20/2011
    - Initial Release​

    Bug Reports:
    Please include at minimum the following information with all bug reports:
    • CraftBukkit Version
    • Residence Version
    • What you were doing when the error occurred.
    If available, also include:
    • Any server console error messages
    • Other plugins that may be causing the issue
  2. Offline


    Ok, so the idea of player controlled antigreif is just what I wanted, however this does not meet my needs...there are a few problems
    1. Setting up regions is to compicated for the average user, I know its simple but my players have the attention span of a rat it seems, if you could simplify it that would be great.
    2. The help screen is to cluttered..again my short attention spanned players complain its to hard as soon as they see it.
    3. antimove regions can be pushed through, Ignoring the message and continue walking will let you move
    4. lastly the entering and leaving region messages are driving me crazy, I don't really care if I have entered the region around a portal or left it.

    Looking back at my post it looks a little mean...I didn't mean it that way and just wanted to offer criticism so to make it less harsh here is a smiley face =D
  3. Offline


    Hey bekvon, wanted to let you know, the option to change to .yml is just what I needed. Lets me go in and change the names of the zones like i wanted and make other adjustments offline. Thanks :)
  4. Offline


    I have selected my area, and when I type /res create "name" I get "Unknown Error, failed to create residence."
    I am a noob at hosting my own server with add-ons and such and I think I don't have a permission file.
  5. Offline


    Noted, thanks for testing :)

    It looks like a small bug, what version of CB are you using also? Il fix it.

    I'm still unsure of exactly what im going to do. I may really say screw this whole config file and just set up normal permissions. The problem is that, people who dont use permissions are then screwed, which im not too fond of doing that to them. I'm probbably just going to move that last residence.create node into the config file too, and then try to clean up the config file. Im also starting a wiki which should better explain the config file, although I will probbably need help writing it hehe. :)

    He can remove the residence and replace it. If your using IConomy though, he wont get the money back... maybe I should put in a "refundPlayer" config option upon removal. :)

    1. Hmm, I'm not sure how to make it any simpler, although I'm open to suggestions :) I will be expanding upon the selection command at some point.
    2. Unfortunatly, its hard to squeeze enough useful information in the limited chat space minecraft gets you hehe. I just started a small wiki in which Im hoping to eventually make much more useful and informative.
    3. What version of craftbukkit are you using? It may be that your using a new one that already has changed the event. Alot of plugins are about to break with craftbukkits after version 556 due to a lot of bukkit event name changes.
    4. Working on adding a way to remove that hehe :) Hopefully will have it out either tonight or tomorrow.

    And no worries, Im open to constructive criticism :)

    Awesome! I knew that was a good idea :D

    By the way all, i just started this wiki here:

    It needs ALOT of work, and I am in need of help. If you are interested in helping send me a PM and I'll give you access :)

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


    My suggestion to make it simpler is add a command (after selecting a region) that does everything for them with standard settings, In example a player selects a region, and types something like /res make (name) it auto sets flags that are hard-coded (probably just the no one else build flag) auto expands it from sky to bedrock and preferably automakes it a subgroup if its colliding with another. im sure my players could handle that and more advanced settings can be used but for the quick region it does that. also, I didn't see it but is their a way to disallow subregions in a region?
  7. Offline


    The only reason that is, is because towny uses /res command too and it I guess is a higher priority than this is but I favor this one so I removed it.
  8. Offline


    Can you fix the ability to hide messages?
    I'd like if I set the leave message blank, it doesn't post a blank message.
    (Same for enter)

    We have a town with alot of subzones, and these greetings spam the chat to no end.
    I'd say this is an urgent matter, and an easy fix.
  9. Offline


    Hmm, well create already applys default flags automatically. They are hard coded in the config file... so basically hard coded as far as the users are concerned, but the admin of course can change them in the config. The automatic sky to bedrock might be handy though. And yea, you can deny subzones by group. There is a subZoneAccess: true/false setting under each group in the config file.

    Hmm, wonder if I should change my command name then.... don't know what I would change it to though...

    Don't worry, your like the sixth person to mention this to me, its almost done, look for a release in about a hour :)
  10. Offline


    I said this earlier but I didn't provide enough information. build 556 it seems that the plugin does not check if a player has entered a region enough. here's my situation: Region around a portal, player with rank lower than VIP enters portal displays "you don't have permission to enter this zone" pushes them back, they keep walking and receiving the message but slowly making there way forward until they reach the portal. it doesn't check if they are in the region enough and just dramatically reduces their speed. now one other thing, I dont see it in your guide, how do you make a groupmanager/permissions group allowed to do things in a region (like ignore the no moving flag) and how do you make sure all the parent groups can also move in it?
  11. Offline


    Ok to everyone wanting the remove messages command, download v1.2.4 and here it is:
    /res message <residence> remove [enter/leave]

    For your move problem, try changing the minMoveCheckInterval option under your config file. Set it to lower or even set it to 0. Its just a lag prevention mechanism, but if you have a decent server you don't really need it on. Should be near the top of the config. And to set a flag for a whole group on a area, do this "/res gset <residence> <group> <flag> <true/false>"
  12. Offline


    Cool, is that able to be set to default? (the remove messages)

    BTW I know this is a pain but in the config, could you use allow and deny instead of true or false? some of the questions get a little confusing with true and false. not a very urgent change though

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


    Do you need any permission node to create sub zones? Or anyone can create a sub zone as long as it's enabled for their group, even if they don't have residence.create?
    So, in practice, someone could buy a large plot of land from an admin and divide it up into subzones, because the buyer can't create their own residences.
  14. Offline


    A few things I'd like to see is health regen within the building. That's the only thing I need in order to use this.

    I am also having a problem with the enter/leave messages appearing again after you stop the server.
  15. Offline


    Also, would you add the flag 'destroy' to go along with build?
    We're having problems with people destroying blocks in areas we won't let them build in.
    You could just fix that with the build flag >.>, Thanks for an awesome plugin though :3
  16. Offline


    Yea, just remove the entire "defaultMessage" line from the config, and it should default to none.

    Unfortunately no, as it would make it more complicated, as the "allow" and "deny" text would have to be translated into true/false for internal use. Maybe I should put a comment in the config that says "true=allow and false=deny" though.

    Theres a configuration option, I think its canSubZone: true/false. Its under each group in the group permissions in the config file.

    Yup, i found a typo in my code where i put entermessage twice instead of leave that I think is causing this, try v1.2.5 and I think its fixed now....

    You basically mean split build up into a build and destroy basically. I could do that. Just out of curiosity though, why would you use it? Why do you have a area you don't want to build in but do want to allow destroy?
  17. Offline


    No, they CAN destroy. That's the problem. Just asking for a fix.

    Also, have '/res list' list subzones. That'd be great >.> or '/res list <zone>' will list them.
  18. Offline


    /resi or /re would be good.
  19. Offline


    Hi ya, no i dont have any other protection plugins enabled atm but i have found out the problem, it was the plugin "dwarfcraft" which although cool will have to go, as it is giving me way to may problems as of late.

    Thanks for your reply, Pipster
  20. Offline

    Nat Ryall

    Nice work bekvon, this is a brilliant plugin!

    I was writing one similar to this but you beat me to it so I stopped working on it. :)

    If you need any help let me know.
  21. Offline


    i have some unknown error when i creating my residence, im admin so i have al right. well i select area i want to make by wooden axe when i use select vert, that command shows that i have that area from sky to bedrock , when i use select size, nothing happens on chat , so i use res create zone1 and unknown error... need help.
  22. Offline


    Ok, thanks a lot for the informations.
    The rectangle problem still exist. The problem is that i have to create 1 residence per room because houses aren't always a 4 cornered block and multi-residences are the only working way to prevent collisions. So my idea is to connect this single residences to 1 big cause of the bad managment and leave/enter messages. To do this just a array is needed which contains the "sub residences". So i meant seperated areas instead of the subzones in a parent area.
  23. Offline


    Is anyone else having trouble with multi-world support? For some reason my residences in the normal world work perfect, but whenever I create one in another world, say my Castle world, it's deleted in a couple hours? I have bukkit: 556 and residence: I'm not sure but when I updated last it said Multi-world support. My Falsebook and Lockette also were not working, and the console wasn't throwing any errors. Lockette said there was no container nearby, while Falsebook just entirely didn't work.
  24. Offline


    I have done that alot of times, you just type this for example

    My town is called Carlin and the subzone called big_house_1, then just type /res remove Carlin.Big_House_1

    Love this addon, just needs some bug fixes :)
  25. Offline


    If you need help for the wiki, I'm up ;)
  26. Offline


    Could you enable a global monster flag?

    Yes, but if peacefull is enabled, players get auto healed and I dont want that :) .
  27. Offline


    Also, add a '/res market remove [res]' to take the property off the market.

  28. Offline


    I'm with turtlelink2 in the fact that's it too complicated for the average user, which is why I might have to unfortunately leave this wonderful plugin. But I won't do that without a suggestion: If you look at the Factions plugin, players can use /claim to claim a 16x16 chunk they're standing in. If you could do something like that, but still make it so claiming can cost money in iConomy, plus still be able to be name/flag like you currently have set up for polygon selection, I would love you forever.

    Then use bMobs, it allows you to get rid of the mobs you want, customize any way you want, etc.

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


    Hmm, ok sorry if ive asked this before, what craftbukkit version are you using? And as for listing subzones, they show up in "/res info" although I suppose I could make a separate command to list only subzones, just for ease. Also, any errors show up on your server console when you destroy blocks in the zone?

    Ok, I'll add a command alias... maybe even for both of these :)

    Wow! if i had known somonelse was writing one I would have left all this hard work to you haha :D I basically started making this just out of frustration from Towny being so heavy weight. I may actually need some help in the future with some things, but I want to rewrite some stuff before I release the source (which I will be doing eventually) as some of its just a crazy mess... and some of its just crazy copy paste where I was just lazy lol... :D

    Does your server console produce any sort of error? I cant really tell whats going on unless you paste the errorlog. Also, what version of craftbukkit? Sorry if I've already asked that hehe :)

    This is actually something ive already planned to do, just havn't gotten to it yet. You will be able to have multiple physical areas tied to one parent zone, and they will all act like one residence. Subzones will work between areas, too if you place them side by side too. It will be very neat once its working. This is medium priority on my list of things to do right now, high priority is fixing bugs :D

    Hmm, sounds like it could be a bukkit issue.... but im not really sure.... what multiworld plugin are you using? Multiverse? And craftbukkit version?
    Awesome! :D If you don't have one, create a account (takes literally like 10 seconds) and il give you access :) or let me know if you already have one and il add it.

    Yea, ok, I see how that could be useful. Il do that when i get a chance.

    There is a "/market unsell [res]" command, although I guess i really should have named it remove. I'll make a command alias for it when I get a chance.

    I could maybe make a "/res select chunk" command to select the entire chunk? Is that good you think?

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


    Nice plugin but seriously complicated.
    I still don't understand... I need to copy my permissions groups to the config file?
  31. Offline


    Lol sorry, I know its a bit hard to under stand. No you dont need to copy them, but the groups under my config file match the groups in your permissions. For example, if user "Player" is in the "vip" group for your permissions, that means he will also be in the "vip" group in my plugin's config file automatically.
Thread Status:
Not open for further replies.

Share This Page