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


    Also - how are chests protected in this feature? Can anyone access them? is there a toggle like Regions?
  3. Offline


    While the changes you made for flags are nice and basically do what I suggested, I meant something more along the lines of new Permission Nodes such as:

    Player Flags- allows people in this permissions group to use this flag in /res set <ResidenceName> [flag] [true/false/remove]

    Residence Flags - allows people in this permissions group to use this flag in /res pset <ResidenceName> [PlayerName] [flag] [true/false/remove]

    But I suppose that would be useless for those not using permissions, huh?
  4. Offline


    I didn't know this had been added to BukkitUpdate already... but i guess thats ok :) Im assuming the reason it thinks theres and update has something to do with the fact its a .zip rather then a .jar but I wouldnt know for sure without asking the author.

    Glad to hear it :D

    Hmm, i notice that it doesn't recognize permissions either. Are you using permission just for curiosity? Im not really sure why its not working for you :( But i guess its time to implement a save-interval feature that will autosave residences at intervals. Also going to add a save message to the server log whenever it saves. When you stop your server, and it says "[Residences] Disabled!", do you see any error messages in the server log?

    Not quite sure i understand your question... but what I think your asking is how each player is assigned their group, in which case yea, it pulls their permissions group and uses that. If for whatever reason it cannot find thier permissions group or your not using permissions, it throws the person into whatever group you have set as your defaultGroupName in the config file. Hope that answers it... and thanks :)

    See first reply above... but yea, you might be right as well, could be due to the config file.

    Chests are protected by the 'use' flag of the residence. Furnaces should also be the same. Doors are currently broken due to a bukkit bug, but they will get it sorted.

    Yea, there's a couple reasons why its done the way it is. First off, yea if your not using permissions it doesn't help you... Second, remember each flag has 3 possibilities, it can be true, false, or neither. If i did it with permissions, i would have to make twice the number of nodes there are now, because it would have to have a '' and a '' where as with the way its done now, its just "build:true/false" or you can remove build from the list completely to get a neither flag. So yea, that's why I ultimately did it this way. As a side note, its also probbably slightly more CPU efficient to have my own specific internal permissions, rather then continuously passing it to permissions, even though permissions does have good caching ability.
  5. Offline


    @bekvon - is there any plans to allow for players -IN GAME to make a customized list of players they want allowed to each protection? For example. JoeBob does /res create list NAME .... then does /res list NAME add JeanBay, BobbieToot, Random101 ... and then when they are protecting a residence they'll be able to use the 'list' instead of adding each person individually into the protection/residence.
  6. Offline


    Aye, thats on my todo list, however its not top priority right now, im trying to solidify the save system a bit, since some people are having trouble with it, and its a quite important thing. And then after that I will work on buying / selling of residences, and then finally player lists. The reason its at the bottom is that, until its built you can still use the "/res mirror" command to mirror permissions, and so you don't necessarily have to add everyone manually at the moment if you already have a residence with the perms you want. I think that command should suffice until I get lists implemented.
  7. Offline


    Sounds like a good plan :) just proding you at this point

    *yeahhhh takes it!*
  8. Offline


    What about tax charges? I would love to use this plugin, but I'm afraid I'm going to get all these plots of land all over the place from players who aren't active anymore on the server. I would like for it to just deduct money from them every 24 hours in real life, and when they don't have enough, it releases ownership on the land again.
  9. Offline


    I guess I could do taxes, but you've just given me a great idea that I think will work even better. You know how in real life when you want to rent a apartment, you have to sign a lease. What I could do is rather then you owning the land, you lease it for X days. Then towards the end of the lease, you can either choose to renew it or let it run out. If you let it run out, it will automatically release the land, and if you renew it your lease is refreshed back to full and you keep the land. I could then add a config option that will let you choose if renewing the lease will charge you iConomy money again, so that it would work like taxes. I would also make the number of days configurable, and a configurable minimum time between lease renewal (basically you cant renew unless its less the X days until expiration). I could even add a "renewal cost per block" setting, so that you can make renewal cheaper then actually buying the land again.
  10. Offline


    Hey, that's me, the french guy, thx for last beta, there is awesome !

    But, i have a 'bug' i can't create subzone : this message appear : Unknown error occured when makin subzone.

    If can you help me :(,


  11. Offline


    Hmm, there must be some special case that's causing it to not work. I'll see if I can narrow down what causes this.
  12. Offline


    That's a great idea. That would ensure that they've logged in within the past x number of days. I'd love it if an admin/mod could override the amount of days for a user (IE: They're going to be going on vacation for 2 weeks but the timeout period is 7 days - The user could then arrange with the admin to renew it for that period of time so that they don't lose their lot while they're out of town)
  13. Offline


    I don't know if you have kept the old beta versions, but if so, would you be willing to put them up for download? I run a small server with only 3 other people at the moment. I am very impressed with the features of the current version but, right now, only need the simplicity of an earlier one.
  14. Offline


    Perhaps a method to specify the defaults for flags might be handy?
  15. Offline


    That too is a good idea. Like I say, the only thing that's stopping me from using this is that it has no sink on the players account, and therefore, their plots of land are permanent. There's a mod called towny that has this functionality built into it, but I find it way to bulky for use as well.

    I really appreciate the time that your spending working on this plugin. Once you have that feature implemented, I'll be using it for sure! :)
  16. Offline


    So.. I've got this installed ok. I'm set to op, and admin in permissions with .* etc...
    I've been able to map a cuboid I want to protect, but when I try to create the zone nothing happens.
    I am doing it like so, "/res create ###" (where ### is the zone name I want to create).
    I get no errors ... nothing. Help pls :)
  17. Offline


    Yup, il make sure to implement admin controls :)
    Umm...... no i dont have them anymore :( sorry!

    You can specify default flags in the config file. Its done by group too, so you can give different groups different default flags.

    I should have the feature implemented in the next couple days, so shouldn't be to long :)
  18. Offline


    Here's the errors I'm getting btw. I tested this with no other mod installed so it has to be something with Residence. This happens when I select my wood pickaxe (the weapon I set in the config for mapping zones), select point a, then point b. I will do a /res select size to see how many blocks are being protected, and i notice sometimes at this point these errors start going off. Other times I will try /res create adminbldg (name of the zone) and it throws them off. In game however I get no message. Not sure what to do!

    [SEVERE] Could not pass event BLOCK_IGNITE to Residence
    at com.bekvon.bukkit.residence.ResidenceBlockListener.onBlockIgnite(
    at org.bukkit.plugin.RegisteredListener.callEvent(
    at org.bukkit.plugin.SimplePluginManager.callEvent(
    at net.minecraft.server.BlockStationary.a(
    at net.minecraft.server.World.h(
    at net.minecraft.server.World.g(
    at net.minecraft.server.MinecraftServer.h(
    2011-03-25 03:07:17 [SEVERE] Could not pass event BLOCK_IGNITE to Residence
    at com.bekvon.bukkit.residence.ResidenceBlockListener.onBlockIgnite(
    at org.bukkit.plugin.RegisteredListener.callEvent(
    at org.bukkit.plugin.SimplePluginManager.callEvent(
    at net.minecraft.server.BlockStationary.a(
    at net.minecraft.server.World.h(
    at net.minecraft.server.World.g(
    at net.minecraft.server.MinecraftServer.h(
    2011-03-25 03:07:42 [INFO] thiefzer0 lost connection: disconnect.quitting
  19. Offline


    Heya great plugin, works fine!
    but... when i restart the server, all residences are gone.
    And i wonder how the plugin manage that without database?

    I got this message too:
    [INFO] [Residence] Enabled! Version v1.1.6 BETA by bekvon
    [INFO] [Residence] - Save file does not exist.

    Im using LWC, achievements and stats, myhome, permissions, essentials, iconomy, iconomychestshop and some other plugins.
    any known issues with plugins?
  20. Offline


    Ok now it's giving these errors any time I even log in with Residence lol... Wtf have I FUBAR'd up?

    Ok.. apparently it's just an issue with my config.yml. I probably fudged it up somewhere, because the default one from the folder works fine :)) Sorry to cause a fuss. I am just a little confused on exactly what effect "true" and "false" have on the various flags. When I think true/false I think on/off, etc so I am thinking a flag set to true means it WILL block that action. Correct me if I'm wrong here...
  21. Offline


    no it means: false = not allowed, true = allowed to build, move, pvp, monster etc. :)
  22. Offline


  23. Offline


    I am replicating Shooty's error now too.. I cannot create subzones >< Everything else works great though.. my castles block count from bedrock to skyline was like 60 million... lol
  24. Offline


    Well that particular error was related to the fire (BLOCK_IGNITE) event. Basically, it looks like it was caused when fire was started by somting other then a player (lava) and Residence was thinking it was started by a player. Should be fixed now I think, try it and see :) and thanks for reporting this.

    No known issues with other plugins, but that doesn't mean they dont exist. I just released a new version which includes a configurable auto-save interval. Should save every 10 minutes. Try it and see if your problem is fixed, or if at least throws a error message now.

    Il look into it when I get time, hopefully the API is similar enough I wont have to change much.

    lol thats a big castle... I tweaked a couple things with subzone creation in this version i just release, but im not sure that any of them fixed it. It should now throw a error message to the console whenever this happens though, so if you would, try it again and if it works awesome, if not see if there's a error message and paste it here :)
  25. Offline


    let me clarify,
    i have a residence, 200 square blocks, i can make 1 20 block subzone near one corner of the map, howver if it try to create another 20 block subzone in the opposite corner, more than 100 blocks away it tells me that it overlaps with another subzone.
  26. Offline


    hey how to give residence to other player. I mean: I'm admin and my player ask for he's own land. Only he can build there. but i set resedence for him. I don't want give him right to set by himself. I read all threat but I'm still not sure. It would be nice if someone explain me directly for this matter.
  27. Offline


    I think it would be a good idea if in specific area you could use any commands or permissions which choose admin. Or even a better idea would be if in specific area you could run specific plugin, for example this plugin can only work in specifc zone :)

    Sorry for my bad english. :) I hope you understand what i ment to say :)
  28. Offline


    it works great, now. my old problem is just bukkit or server propperities problem i believe.
  29. Offline


    anytime I try to create a subzone I get "unknown error occured when making subzone" - console shows nothing.
  30. Offline


    Thank you for your speedy response about not having the old beta versions anymore. I understand. Perhaps, in the next update or distant future, you could implement a customizable menu, such as color change and format, and have it so it doesn't display commands in the menu that are not accessible to certain groups, like default, just so I don't have to hear my friends demand I turn the teleport option on. So maybe have the teleport option, subzone, custom message set, etc. unaccessible in the menu if turned off in the config. I know you are busy with all these other demands, and I have no idea how you keep up with them, it is very impressive, but maybe these things could be worked on when the plugin has been perfected. Thanks
  31. Offline


    We are really enjoying this mod on my server. I do have one question that comes up often though:

    In some cases using a tool to define the corners of a residence isn't practical. Does /res select [x] [y] [z] define a cube, or a sphere, from the center point where the player is standing?

Thread Status:
Not open for further replies.

Share This Page