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 Jan 23, 2013@chriztopia
No. Using standart prices. I'm using SignColors for colored sign. However I don't use color codes for your signs.I'm using ChestShop and Lockette and SignShop. Are these compatible?
-
View User Profile
-
Send Message
Posted Jan 22, 2013@orkun1675
are you attempting to use priceperblock? I am trying to figure out what is causing this error for you and no one else.
-
View User Profile
-
Send Message
Posted Jan 22, 2013Still with 0.5.6:
http://pastebin.com/f7332QGj
-
View User Profile
-
Send Message
Posted Jan 22, 2013I have updated LWCBUYLAND addon plugin it can now remove protections from buyland signs and NON standard LWC protections such as dirt and stone. This happens when someone resets land and a lwc protection such as a chest was left on it. The chest will turn to a lets say dirt block and the dirt block will be protected. The dirt blocks protection will now be removed if you use LwcBuyland.
-
View User Profile
-
Send Message
Posted Jan 19, 2013@TheProbleemm
I created a Ticket for this feature to be added. In the future please add any features to the tickets.
-
View User Profile
-
Send Message
Posted Jan 19, 2013@orkun1675 This issue has been resolved in 0.5.6
-
View User Profile
-
Send Message
Posted Jan 19, 2013Hi,
I just want to remind you that this error still accurs: [SEVERE] Could not pass event SignChangeEvent to BuyLand v0.5.5 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:1407) at net.minecraft.server.v1_4_6.Packet130UpdateSign.handle(SourceFile:46) at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112) at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:585) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:481) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:416) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_4_6.block.CraftBlockState cannot be cast to org.bukkit.block.Sign at me.buyland.buyland.ServerChatPlayerListener.onSignChange(ServerChatPlayerListener.java:70) at sun.reflect.GeneratedMethodAccessor528.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 14 more
-
View User Profile
-
Send Message
Posted Jan 19, 2013Hello! add a update one sign:
Line1: [AddMember]
Line2: NameRegion
Line3: NameMember
Line4: NameMember
-
View User Profile
-
Send Message
Posted Jan 17, 2013@bob123887
Then the plugin is working correctly. It has to do with your permissions. What permissions plugin do you use?
-
View User Profile
-
Send Message
Posted Jan 17, 2013@chriztopia
It notifies me, it says you do not have permission to buy.
-
View User Profile
-
Send Message
Posted Jan 17, 2013@bob123887
I suggest double checking these permissions. buyland.signuse buyland.buy The plugin is setup that it will notify the player if they do not have permission to use that command. If it is not reporting back that they do not have permission to use the command I suggest attempting to redownload the plugin and reinstall.
-
View User Profile
-
Send Message
Posted Jan 17, 2013How do you let non-op people buy the land? I can create land and put a price on it (as an OP), and when non-op people walk over the land, it says "land for sale" , but when they right click on the sign, it just says you do not have permission to buy. How do I fix this? In permissions.yml, i copied and pasted the permissions in the description, but it still does not work. anyone know anything I am doing wrong? Thanks
(buyland.buy - Allows you to buy the land. buyland.sell - Allows you to sell the land. buyland.price - Allows you to price the land. buyland.rent - Allows you to rent the land. buyland.reload - Reloads all config commands. buyland.admin - Admin 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.buy.addmember - Allows a land owner to add members to there region. buyland.buy.removemember - Allows a land owner to remove members from there region. buyland.* - ALL Commands.)
-
View User Profile
-
Send Message
Posted Jan 17, 2013@Nookyava
Thank you very much.
-
View User Profile
-
Send Message
Posted Jan 17, 2013I just want to say first of all that I love your plugin. It was EXACTLY what I was looking for and is going to make my life extremely easy. I've recently started a server for my community and I wanted plots, so people can get their own homes, etc. I was frustrated yesterday because I couldn't find one but then I found yours, and I love it. Keep up the good work!
-
View User Profile
-
Send Message
Posted Jan 16, 2013COOL PLUGIN!!
-
View User Profile
-
Send Message
Posted Jan 16, 2013@saintcrime
Glad to hear it I hope you use my plugin and help promote it. :)
-
View User Profile
-
Send Message
Posted Jan 16, 2013@chriztopia
Thank You Very Much, That cleared up my questions... :)
-
View User Profile
-
Send Message
Posted Jan 16, 2013@saintcrime
To answer your first question the plugin sets flags for worldguard the same as if you done /region flag So it will show up in dynmap. As for the groups no I do not have this setup in the plugin but I do know you can use worldguard and set groups. I suggest doing this manually for now until I figure out how the best way to do groups is. I will most likly do this the same way by using worldguard groups. Basicly heres how my plugin works when u buy a region. It will set the regions owner to who bought the land and saves a worldedit schematic of that region as it was when bought. If the region owner wants to allow friends to change the land they can add them as a member by using addmember and removemember commands. Then when the owner sells the land... the owner and members are removed and the schematic that was saved is loaded back to that region. If this doesnt help please let me know.
-
View User Profile
-
Send Message
Posted Jan 16, 2013Hi, This plugin uses World Guard for the regions, now if I am using Dynmap and the Dynmap World Guard plugin will the regions from this plugin show up on Dynmap, or does this plugin override the regions saved in World Guard and save them under BuyLand plugin files etc???
Also, can the regions to be purchased or rented be separated by groups or users? To clarify, lets say I have Regions for something like a hotel, and I have Regions for wilderness claims, is there permissions so say Group 1 can purchase regions in hotel ONLY, and Group 2 can purchase regions in hotel and regions in wilderness, or even one or the other? I guess what I'm trying to express is "is it all regions that are setup with buyland for all users and groups and and are all regions treated the same or can I have different regions handled individually and not all regions handled with buyland available to all users of buyland across the groups the same"?
If this is not clear I can explain in more detail if needed. :)
-
View User Profile
-
Send Message
Posted Jan 16, 2013@chriztopia
Thanks!
And could you add a feature so that when a region is rent the sign shows the name of the player who rent it.