BuyLand

What does it do?
BuyLand allows users to buy, sell, rent, and price WorldGuard Regions. It uses the WorldGuard Flags BUYABLE and PRICE as a starting point, and allows players to set additional WorldGuard flags as they see fit. A player simply types /buyland [Region Name] or /rentland [Region Name] 1 Week and it will deduct the money from their account. An even easier way to do this is to click on BuyLand signs. This plugin uses WorldGuard, WorldEdit, and Vault. You can also configure how many regions a single person is allowed to own, as well as the default price someone will pay if no price is specifically set. You can also set the sell back price as a percentage. The Land once bought will take a snapshot of the land and save it. As soon as the Land is sold it will restore the land back to the snapshot.
Quote from chriztopia:I found that plugins like Towny and other plot plugins are sometimes hard to install and a pain to maintain. So I created this plugin for my servers and wanted to share it.
BuyLand - Version: 0.9.1 Alpha
Like always, please submit tickets for any defects that occur in the latest release.
When making suggestions for new features, please submit one suggestion per ticket. Try not to lump 5 suggestions in one ticket. It makes it very hard to track progress of each sub-part.
Quote from Planned in v0.8.9:
- Any changes needed to get to Bukkit version 1.7+
- Some small changes to signs and how players interact with them.
- Possible changes:
- Add a way for a player to rent an owned region.
- Add a way for a player to sell an owned region to another player.
- Add a way to have the money from a purchased region and a sold region transition to a bank
- Possibly resolve some more tickets
- Try to work on some help sections to describe in better detail how to do things in BuyLand and configuration yml files.
- Any other items that may come up.
ChangeLog
- version 0.9.2 for 1.8 soon!
Version 0.9.1 Alpha
- Now works on 1.7.2 R3+
- Fixed critical bug that kept BuyLand from enabling
- Fixed deprecated loadConfiguration();
Version 0.9.0 Alpha
I have tested this and it will not run on 1.7.2 R3+
Version 0.8.8
- fixed setting WorldGuard flag so greeting and farewell flags can be cleared by setting them to an empty string.
- added config setting: buyland.allowedWorldGuardFlags and rentland.allowedWorldGuardFlags
these contain entries below for each allowed flag that can be set and its price.
- Ex:
- [buy/rent]land:
- allowedWorldGuardFlags:
- default: 0.0
This line does not matter, but should be there - entry: 150.0
- game-mode: 300.0
- default: 0.0
- allowedWorldGuardFlags:
- [buy/rent]land:
- Ex:
- Ticket 69 & 41: Added sign control to allow the adding of worldGuard region flags.
- Sneak left-click on a Sell Back sign or Rent Extend sign to view available flags as defined in the allowedWorldGuardFlags section.
- Added config setting: general.sign.showBuyLand [true/false] that will allow you to choose if [BuyLand] is shown on the first line.
- if it is not shown, then "For Rent" signs will also show the rent price.
- added /abl signFix command to update existing signs after this config setting is changed.
- Ticket 71: When a sign for a rented region is right-clicked, the time remaining will be displayed.
- Ticket 72: allow for a way for the owner, member or admin of a region to restore or move its sign.
- Reworked creation of all BuyLand signs.
- Create a new sign with the following lines:
- [BuyLand]
- regionName (The name of the region)
- Major Reworking of sign clicking actions.
- Ticket 44: Addressed multi-part request
- Show price with click: see Detailed Sign Information
- Show time left with click: see Detailed Sign Information
- Have option to hide the [BuyLand] from the sign and utilize the extra line. see Ticket 69 & 41 above
- Ticket 75: Add permission buyland.offlinelimit.exempt to prevent the automatic selling of a region for a player that has not logged for a timeframe.
- Reworked updating of config files to be more stable.
Version 0.8.7
- Bug fix only release
- Tickets 65 & 66 - Fixes bugs introduced in 0.8.6
- When a region was initially rented, rent extended, and rent region expired, the schematics were not being applied or saved from the settings.
- It should have been looking for a setting of rentland.onRentExpire.placeSchematic, but was actually looking at
buyland.onRentExpire.placeSchematic.- This and similar issues caused it to never find the setting for placing or saving the schematic in the onRentBegin, onRentExtend, and onRentExpire events.
- This also affected the removelwcprotection setting in the same sections.
- It should have been looking for a setting of rentland.onRentExpire.placeSchematic, but was actually looking at
- When a region was initially rented, rent extended, and rent region expired, the schematics were not being applied or saved from the settings.
- Ticket 67 - Fixes bugs introduced in 0.8.5
- When a player with a mixed case name such as AndyCYXU buys a region, they can not sell it because it says they are not the owner.
- When comparing the owner's name to the player's name, the players name was left upper case while the owners name was forced lower case when it was created.
- This caused the name to not match, and flagged the player as not being the owner and denied the sale back.
- When comparing the owner's name to the player's name, the players name was left upper case while the owners name was forced lower case when it was created.
- When a player with a mixed case name such as AndyCYXU buys a region, they can not sell it because it says they are not the owner.
Older Versions
External Plugin Dependencies
Features
- Use commands or signs to buy/sell/rent a region
- Price can be calculated by number of blocks in the region.
- Configurable amount of land one person is allowed to own.
- Default price in the event a price is not set.
- Configurable percentage that an amount is sellable back for.
- Configurable language file.
- Land can be reset to when it was first bought.
- WorldGuard Flag of Entry added to config file to stop non owners from entering.
- Land can be selected using WorldEdit and saved as a BuyLand region.
- Land can be selected using WorldEdit and saved as a RentLand region.
- Add/Remove members from a region.
- Signs auto change to show if the land has been bought or sold.
- Remove LWC Protections
- Players can list all regions they own
- Players can teleport to any region.
- Admin can view all regions a player owns.
- Auto Remove Feature for inactive players.
Commands
| Type | Command | Permission | Description |
|---|---|---|---|
| Admin | /ReloadBuyland | buyland.reload | Reload all BuyLand Config Files |
| Admin | /abl Save [RegionName] | buyland.admin | Select your cuboid using WorldEdit then run this command to create a new sellable region. |
| Admin | /abl ForSale [RegionName] | buyland.admin | This will set the land back to default. Just as if the player sold the land back. |
| Admin | /abl Reset [RegionName] | buyland.admin | This will simply reset the Land back to when a player bought the land. This will not sell back the land only reset it to default. |
| Admin | /abl Price [RegionName] [Cost] [SecMinHrDay] | buyland.admin | Used to change sale price of a For Sale region from the default in config. Can also be used to change the Rent price for a Rent region. |
| Admin | /abl List [Player] | buyland.admin.list | Lists all regions a player owns. |
| Admin | /abl LwcRemove [RegionName] | buyland.admin | Removes LWC Protections for the region. |
| Admin | /abl Flags | buyland.admin | List all worldguard flags that can be set in the config.yml file. |
| Admin | /abl signfix | buyland.admin | Fix existing signs after changing general.sign.showBuyland. Until this is run, existing signs may cause an error. |
| Admin | /rentland Save [RegionName] | buyland.admin | Select your cuboid using WorldEdit then run this command to create a new rentable region. |
| Admin | /rentland Reset [RegionName] | buyland.admin | This will simply reset the rent land region back as if the rent had expired. |
| Buy | /buyland [RegionName] | buyland.buy | Buys a region. |
| Buy | /sellland [RegionName] | buyland.sell | Sells a region. |
| Buy | /buyland AddMember [RegionName] [PlayerName] | buyland.buy.addmember | Lets a landowner add members to their region. |
| Buy | /buyland RemoveMember [RegionName] [PlayerName] | buyland.buy.removemember | Lets a landowner remove a member from their region. |
| Buy | /buyland tp [RegionName] | buyland.tp | Teleport the player to the sign of a region. |
| Buy | /buyland list | buyland.list | Lists all the regions the player owns |
| Buy | /buyland top [Owners/Renters/CashSpent] (Player Qty) | buyland.top | Shows "Top Players" with: owned lands, cash spent, rented lands |
| Buy Rent | /priceland [RegionName] | buyland.price | Displays the price of a region. Works on both Sellable and rentable regions. |
| Rent | /rentland [RegionName] [TimeQuantity] [SecMinHrDay] | buyland.rent | Rents a region. |
| Rent | /rentland Cost {RegionName] | buyland.rent | Gets the price of a rented region. |
| Rent | /rentland AddMember [RegionName] [PlayerName] | buyland.rent.addmember | Lets a landowner add members to their rented region. |
| Rent | /rentland RemoveMember [RegionName] [PlayerName] | buyland.rent.removemember | Lets a landowner remove a member from their rented region. |
Permissions
Non-Command Permissions
- buyland.all - ALL Commands.
- buyland.signuse - Allows the user of buyland signs.
- buyland.signbreak - Allows a user to break buyland signs.
- buyland.signcreate - Allows a user to create buyland signs.
- buyland.offlinelimit.exempt - Allows the player to be offline longer than the amount specified in the config.yml setting of buyland.offlineLimit.days without the region being sold for inactivity.
- buyland.maxland.(Any Number Between 1-50) - Determines the maximum number of regions a player can buy. If you are using inheritance on permissions you can just assign a higher maxland permission to the higher ranked group. It will use the highest permission it finds in determining if a player can purchase another region.
Source
GitHub - v0.8.5+ by The_Nut (Current Source)
GitHub - v0.2 to v0.8.1 by chriztopia
Help
- Visit this detailed help page for more detailed information on how Buyland works.
RentLand Config
Normally rentable regions are setup with the /rentland save [regionName] command. You can also convert an existing buyable region to a rentable region by adding it manualy in the rent.yml config file.
How to create a rentable region
You must use /rentland save [regionname] and NOT /buyland save [regionname]
Creating a buyland region and trying to place a rent sign on it will not allow it to be rentable!
How to set the sell back percentage
The sell back percentage is based on the decimal form of a percent. So 1.0 equals 100% which means if u buy land for $100 you can sell it for $100. If you set the percentage to 0.6 or 60% the sell back price of $100 would mean you will only get back $60 for selling back your land.
- 1.0 = 100%
- 0.9 = 90%
- 0.8 = 80%
- 0.7 = 70%
- 0.6 = 60%
- 0.5 = 50%
Sign Usage
Sign Setup
To create a buyland sign, create the region as specified above and in the How to create a rentable region help page. When placing a sign, add the following 2 lines and it will create a sign specific for the type of region it is for. Lines 3 and 4 should be blank. You can also read about signs here.
- [BuyLand]
- RegionName
A BuyLand sign can be placed anywhere outside the region it represents.

-
View User Profile
-
Send Message
Posted Apr 21, 2013@chriztopia
Yes it is called "gotham". Is that a problem?
-
View User Profile
-
Send Message
Posted Apr 21, 2013is there a way to delete a region that's been set up?
-
View User Profile
-
Send Message
Posted Apr 19, 2013Using a BuyLand Sign ON the region being sold will result in the sign getting stuck on sold... This is a problem that I will look for a solution on. Also I will be releasing soon a fix for the Null Bug... You may get the developmental version from here...
-
View User Profile
-
Send Message
Posted Apr 19, 2013@saxons12
General question I'm sure I have fixed this problem but to make sure is your main world called something besides "world" ?
-
View User Profile
-
Send Message
Posted Apr 19, 2013I also see these very frequently: [WARNING] [BuyLand] Task #46 for BuyLand v0.7.0 generated an exception java.lang.NullPointerException
-
View User Profile
-
Send Message
Posted Apr 19, 2013The below warning repeats constantly. And this error started showing up again: http://pastebin.com/HM7Nm6ra
Actualy it was fixed with the test develomental build you sent me. But after updating to 7.0 it started again.
Thanks!
-
View User Profile
-
Send Message
Posted Apr 19, 2013Got this error right after startup, is it important ?
[WARNING] [BuyLand] Task #46 for BuyLand v0.7.0 generated an exception java.lang.NullPointerException at com.sk89q.worldguard.bukkit.ConfigurationManager.get(ConfigurationManager.java:196) at com.sk89q.worldguard.bukkit.WorldGuardPlugin.getRegionManager(WorldGuardPlugin.java:828) at com.sk89q.worldguard.bukkit.WGBukkit.getRegionManager(WGBukkit.java:70) at me.buyland.buyland.main$1.run(main.java:395) at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:58) at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:506) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:229) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:469) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:401) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
-
View User Profile
-
Send Message
Posted Apr 18, 2013Hello,
Question about this plugin...
Ok, so I make a region and set it as buy-able or rent-able etc... Now, can I set flags that the Purchaser cannot change on the region, for example: a region that allows the purchaser to not be able to build, or place certain items, or can or can not use lava/water, or purchaser only has access to chests or something? Or does the owner/purchaser have the ability to build, destroy, etc... unlimited.. I know world guard/world edit are used for the region creation of Buyland, just curious if I the creator of the region can set flags for those regions that will be sold/rented and not be changed by the purchaser...
Thanks in advance... :)
-
View User Profile
-
Send Message
Posted Apr 16, 2013@cooking843
I had a similar issue, I as making plots inside my Spawn and it would not work, Although I have other plots set up in the same world elsewhere.
What I did to fix this is Remake the Region protecting the spawn, There is some Flag in there that was not allowing it.( I Believe it to be the Region Flag "Construct" but I have not tested what Flag was causing it.)
After remaking the spawn region, I set it to Priority 1.
I have also noticed in the Config for Buyland and option for this "landpriority: 2" I believe the Region must be the same priority as the one in the Config File, By Default it is 2. Or this is just the default Priority it will automatically make it when you save the region.
A Land anyone is going to Buy or Rent, Must be a Higher Priority Then the ones Protecting it or Over Lapping it
-
View User Profile
-
Send Message
Posted Apr 16, 2013Suggestion
-
View User Profile
-
Send Message
Posted Apr 16, 2013Hi i am having a problem i setup the plot for the player and it will not let them build i have region set the priority to 5 so they can build but it wont let them? please reply ASAP
-
View User Profile
-
Send Message
Posted Apr 15, 2013@to175
Try this version I have added several null checks...
https://dl.dropboxusercontent.com/u/60589593/buyland.jar
Not sure why a region would be listed but not exist but ok...
-
View User Profile
-
Send Message
Posted Apr 14, 2013Any ETA on the next release to fix the bugs?
-
View User Profile
-
Send Message
Posted Apr 14, 2013@Puntafaard Is the sign inside the region just wondering so I can attempt to test it. I will try standing inside the region and buy sell the land by sign. Thanks for helping find the bug.
-
View User Profile
-
Send Message
Posted Apr 14, 2013@chriztopia
Hey just letting you know I found the problem! It's still weird that it does this though. All those things I said only happen when I buy or sell the property when I'm inside the property line. Or maybe when I create the sign inside the property line. It's something you guys could test because that literally took me a freakin day to figure out what was going on lol.
-
View User Profile
-
Send Message
Posted Apr 14, 2013Hi, help me please :( thanks
2013-04-14 04:54:34 [WARNING] [BuyLand] Task #34543 for BuyLand v0.7.0 generated an exception java.lang.NullPointerException at com.sk89q.worldguard.bukkit.ConfigurationManager.get(ConfigurationManager.java:196) at com.sk89q.worldguard.bukkit.WorldGuardPlugin.getRegionManager(WorldGuardPlugin.java:828) at com.sk89q.worldguard.bukkit.WGBukkit.getRegionManager(WGBukkit.java:70) at me.buyland.buyland.main$1.run(main.java:395) at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:510) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
-
View User Profile
-
Send Message
Posted Apr 11, 2013@chriztopia
no problem, hope you can fix it without any issues :D
-
View User Profile
-
Send Message
Posted Apr 11, 2013@chriztopia
Yeah it's really weird. Also on some of them, right after I sell, it will force me to buy it back if I have the money to and if I don't, the house will become unbuyable.
-
View User Profile
-
Send Message
Posted Apr 11, 2013@mormaii2
Thank you for letting me know this is still an issue I was hoping 0.7.0 had fixed this issue.
-
View User Profile
-
Send Message
Posted Apr 11, 2013@Puntafaard
So you have some regions working and some not? and it will work the first time but not again? Maybe try erasing WorldGuard and all its data and Buyland and all its data and start over. That is the only solution I can give you because it should not do what you are saying it is.