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


    so this is basically like Region Markey without WorldGuard?
  3. Offline


    Hey again, I'm not sure I understand what you're asking for, my initial question is pasted down below, but how exactly is this useful to use in the wiki? Nice work on the first half of the Config guide btw, that's going to be useful :)
  4. Offline


    You may have been affected by the name case-sensitivity bug I just fixed, try the latest snapshot. Also, do realize that due to IConomy being name case-sensitive, all Residence permissions are now case sensitive. This means if you give permission to "leemur" you wont have permission, it has to be "Leemur".
    Il see about making sure it works in 2.0, as I'm not doing updates on 1.X anymore. :\
    Hmm, I could do something like that I suppose. The thing is, permissions really falls outside the scope of this plugin, as thats what the Permissions plugin is supposed to do. I already feel like I've tread a little far from the real core function of this plugin, which is to protect land :) But then again, why not lol, it shouldn't be hard to do.
  5. Offline


    Mr.Bekvon. I'm sorry to inform you this but this plugin is not ' just to protect land'. It's the backbone of my server ;)
    I've made the cities around the fact that you can lease a bit of ground for protection! It is why I love it so much, it is why i'm on your plugin post multiple times a day haha. Its becoming basicly the only plugin you -need- for a
    fun server xD
  6. Offline

    Daniel Few

    Oh ye. That was it. I was going to wrote up how sell/buy land as well as make it so admins set buyable building spots.
  7. Offline


    How do i make residence for more than myself
  8. Offline

    Daniel Few

    Do you mean how do you make a residence that belongs to two people?
    If so, you can't have TWO owners, however you can allow two people to have the same permissions in the resicdence.
    Lets say you own a residence and you want someone to have a certain flag for that residence. You would type /res pset <residence name> <player name> <flag> <true/false>

    Residence name: house
    Player name: danjames

    /res pset house danjames build true
    /res pset house danjames use true

    If you don't understand this, please ask :)
  9. Offline

    White Sheep

    My server is now back to build677 and the problem is gone, No i don't receive errors on build 684
  10. Offline


    This seems like an interesting plugin to replace WG...

    - It doesn't protect Lighter's and such to prevent around the world right?
    - Is their a way to turn of Teleporting?
    - Is their way for users to "create" residences such as "Towns" at "x" configurable price?

    I'll have to test this out when I have time, but time is scarce these days.. So someone letting me know would greatly be appreciated.

  11. Offline

    Daniel Few

    Hello, i'll try and answer these as best i can.

    - It doesn't protect Lighter's and such to prevent around the world right?
    I'm not sure what you mean by protect Lighter's? Do you mean flint and steel? So stop people being able to use them? If so then YES you can stop people using lighters to burn blocks.

    - Is their a way to turn of Teleporting?
    Yes there is a way to turn of teleporting. You just go into the config.yml and goto the group you don't want to be able to teleport and turn CanTeleport to FALSE. See the wiki for more information (the part of groups will be added later)

    - Is their way for users to "create" residences such as "Towns" at "x" configurable price?
    Again, not quite sure what you mean. There is a way to create areas and then sell them. The admin can also set how much it costs to create a protection eg 10 coins per block. So if a user wans to protect their house or town, they can select the cuboid and it'll cost them iConomy or MineConomy money to create it.

    Hope this helped,
  12. Offline


    Thanks Danial few.

    but how do i disable max amount of residence? and how do i delete residence?
  13. Offline

    Steve Cole

    to delete in 1.2.8 not sure if 2.0 is the same:
    /res remove <residence name>

    and to disable the max amount of residence:
    i thought their was a permission node or config line for this but can't find it now.
    just set the max limit really high, i have mine set to 1000.
    again this is for 1.2.8 not sure if 2.0 is the same
  14. Offline

    Daniel Few

    Yes, steve is correct.

    To delete a residence, stand inside the residence and type '/res remove'. You can also type '/res remove <residence name>' to delete.

    I do not believe there is a way to disable the max amount of residents, unless a * works, not sure. You will have to ask bekvon. In the meantime, just set it very high like steve suggested.

    Just a tip: if you want to aim a post at someone, type @name eg @danjames. This will give me a notification and help the person your talking to respond quicker. You can also quote their post which also notifies them. I'm sure you already know this though.
  15. Offline


    Thank's Dan, Let me edit what you didn't understand!

    Essential, replacing World Guard, since WG offers Anti-protection, except it doesn't have what residence offers, yet.
  16. Offline

    Daniel Few

    Yes, so you can stop forest fires by restricting starting a fire to certain residence.

    The different between this and world guard, is that it gives users the opportunity to create their 'own' residence (protections) themself, without the need to call an admin. The admin can configure this plugin in many ways so that players can create certain protections. It also adds a role play feature by the connection with iconomy.

    It also adds the market place, which i don't think is available in WorldGuard, correct me if i'm wrong, where users can buy and sell protections, giving them the ability to sell ownership of land and of buildings they have created.

    So yes, in a way it is similar to WorldGuard, however it offers more flexibility for Admins and the ability for users to easily protect their own areas. It also has a leasing system to help stop residence's that haven't been used in a long time clogging up the server files.
  17. Offline


    Tested, it's freaking great!

    Only one thing too add is that letting mob's spawn in residential area should have a flag for no damage, or being able for friendly /wolvies to spawn.

    --- Found a glitch with MCMMO ----
    In a Non-PVP zone, if you still spam unarmed or anything you still level up, even if "x player" doesn't die or get hurt.
    "This is a NON-PVP ZONE" But your skills still level.
    - I'm sure it's the same with digging in a non-able area..


    Also, how do I allow user's to add flags, because I made a resident (big town area) and transfered the ownership with /resadmin setowner x name, and it was transfered.

    So than that person tried to make a subzone and they BOTH did not work she could not change the flags... any ideas?! ... do I need to really add permissions?

    Edit: I tried adding residence.create to the permission Nodes, no luck.
    Is it possible to create one big zone, and within that zone, sub-zone as for "plots" for users?
    Again, the owner does not have access to set flags, only I do.

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


    residence.create is what was being used in V1.X, but in 2.0 it has been moved to the config file under the CanCreate for each permission group. The reasoning behind this was so that people who didn't use the Permissions plugin could still have more control over Residence. However, the owner is always supposed to be able to change flags, even without the CanCreate. What exactly was the message being produced when attempting to change flags? Oh and also, names are now Case-Sensitive, so for example "biorage" does not equal "BioRage" Also, make sure your using the latest snapshot since there were some bugs related to case sensitivity in earlier versions :)

    EDIT: oh, and yea you can use a subzone of a big zone, as a sort of "plot" for other players if you want to :)
  19. Offline


    Thanks, I'll have to test it out when my mayor gets back on.

    the permission node is "residence.CanCreate"?

    She told me that it was something like "You are not the owner of residence to change the flag, or something.."

    So essentialy I do not need that "Cancreate" right? It should be working with out it... Hmm.. Currently my config, I'll have to test it asap!
  20. Offline

    Daniel Few

    Hey @bekvon . Is there anything you can do with a residence that you can't do with a subzone? Because if so, my plan was told make my whole town a residence and then make each house a subzone
  21. Offline


    Exceptions being thrown in 689 running Residence 2.0

    These exceptions occur when picking up blocks (in this case exploded by a creeper)

    05:55:23 [SEVERE] Could not pass event PLAYER_PICKUP_ITEM to Residence
            at com.nijiko.permissions.Control.getGroup(
            at com.bekvon.bukkit.residence.permissions.PermissionManager.getGroupNameByPlayer(
            at com.bekvon.bukkit.residence.permissions.PermissionManager.getGroupNameByPlayer(
            at com.bekvon.bukkit.residence.listeners.ResidencePlayerListener.onPlayerPickupItem(
            at org.bukkit.plugin.RegisteredListener.callEvent(
            at org.bukkit.plugin.SimplePluginManager.callEvent(
            at net.minecraft.server.EntityItem.b(
            at net.minecraft.server.EntityHuman.i(
            at net.minecraft.server.EntityHuman.u(
            at net.minecraft.server.EntityPlayer.u(
            at net.minecraft.server.EntityLiving.p_(
            at net.minecraft.server.EntityHuman.p_(
            at net.minecraft.server.EntityPlayer.a(
            at net.minecraft.server.NetServerHandler.a(
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(
            at net.minecraft.server.NetServerHandler.a(
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(
  22. Offline


    The Multiworld bug is still available :(
    Please fix that, this error is coming:
    "Reason: Invalid World"
  23. Offline


    "/res set Lemoria pvp false"
    "The resident owner doesn't have access or permission"
    -> said she was owner, but basically she couldn't change the flag

    Unfortunately it did not work
  24. Offline


    CanCreate is NOT a permissions node, its a true/false value under the Residence configuration file. Look at line 43 of your config in that pastebin link you gave me. Its true by default though, so you probably wont need to change it. Also, can you confirm that you checked that the Case-Sensitivity of the residence owner matches the players name? This means if you have UpperCase characters in your name, they NEED to be UpperCase when you set the residence owner too. Residence owner "player" is NOT the same as "PlAyEr" Anyway, hope this helps :)

    Il look into whats changed in 689

    I think that the lease system is the only thing that doesn't work on subzones. But that will change in the future :)

    What were you doing when this happened? also using v1.X or 2.0?

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


    I used 2.0 and created in my second world the residence.
    The delete function worked but it's not ok, if I can build only in one world :(
    Only SQL is required and everything will work
  26. Offline

    Daniel Few

    Ok thanks :) so from now on are you going to make residence and subzones have the same features? Cause if you are then i'll go ahead and change my server :p
  27. Offline


    Whether it's true of false (False now in line43) I want them to be able to create subzones.

    I can confirm that it was case sensitive correctly. I tested it on my test account.

    "The res owner does not have access to this flag"

    /res set town pvp false
    The name is "Town" as an example with Capital T

    It's "Town" -> that "The res owner does not have access to this flag"
    ..... "town" -> Internal Error, I've tried both.
  28. Offline


    That's the intention :D

    Town names aren't case sensitive :) only owner names. But it looks like your trying to set a flag you don't have access to. Look in the config file under "Groups", there is a "FlagAccess" section for each group. If you want a player that belongs to group X to be able to change the "pvp" flag, then you need to add a "pvp: true" under FlagAccess. This is how you can control every single flag a player has access to (Residence gives you ALOT of control when it comes to flags).
    EDIT: nvm, residence names are case sensitive right now :oops: although they werent supposed to be...
  29. Offline


    Fixed, but not what I wanted :(.

    Is there any way you can add a option to allow subzone building, but not main residence building?

    Edit: let me explain, by default id on't want anyone creating residences.

    I want my mayor(s) that i create the zone with residences, to be able to create subzones (in which you can call them plots) for them to allow their citizen to create on that plot area..

    In which on that plot they citizen that "owns" that area of plot, only he can access / flag / Mayor can touch / use.

    IE: Residence Town = Big chunk of land
    ---> Mayor1 decides to make subzone 1->2 and make those plots,
    ---> Is it possible to make "citizen1" owner of subzone1, in which they can build, and whatever on it?

    Does it kind of make sense?

  30. Offline


    Yea, set CanCreate to false, and then change SubzoneDepth to somthing greater then zero. SubzoneDepth is a few lines below CanCreate in the config file. An example of what SubzoneDepth is:

    A subzone within a zone is a depth of 1.
    A subzone within a subzone within a zone is a depth of 2.

    And so on :)
  31. Offline


    Also is your dp from Gosik?

    Okay, Let me try now...

    Is there somewhere applicable we can talk back to back? Skype or Msn?

    CanCreate: False
    SubzoneDepth: 3

    but it's still not allowing subzone building :/

    Also is it possible to add people to a certain zone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 12, 2016
Thread Status:
Not open for further replies.

Share This Page