BuyRegion
As BukkitDev staff have left the team I am no longer updating the plugin on here, Please visit the discussion on Spigot, I will move all updates and information over soon - If plugin releases start to get accepted I will think about moving over downloads back to bukkit - As for other plugins you can view my uploads here

Allows you to create signs which can be used to buy or rent WorldGuard regions. The plugin works with all Vault supported economy systems as it requires Vault for economy support.
Please create a ticket for problems else they get lost in the comments.
Plugin work and update
I have pushed build 1.1.7 out (Pending to be released) to squat bugs and fix anything that appears, The plugin has been tested on a spigot / bukkit 1.7.8 build and is working successful with no errors. Please report anything you get into the comments so we can go through and fix these problems together :)
PS: Try and use pastebin when pasting a error
UUID's:
A UUID safe build will be released soon along with bug fixes when some are found.
Installation
- Put BuyRegion.jar in your plugins directory.
- Do a /reload to reload your plugins.
- Configure your permissions if needed.
- Enjoy!
Permissions
- buyregion.create - allows the creation of [BuyRegion] and [RentRegion] signs.
- buyregion.admin - allows usage of admin commands.
- buyregion.exempt - allows player to bypass BuyRegionMax
- buyregion.buy - allows player to buy a region (if config requires)
- buyregion.rent - allows player to rent a region (if config requires)
(note: OPs have all nodes)
Usage
Create a BuyRegion Sign
- : [BuyRegion]
- : <regionname>
- : <price>
- : unused/any
Example Sign
- [BuyRegion]
- epic_store
- 200
The previous would make a sign that would sell region 'epic_store' for '200' of your economy currency.
Create a RentRegion Sign
- : [RentRegion]
- : <regionname>
- : <price>
- : <timespan>
Example Sign
- [RentRegion]
- epic_store
- 200
- 7 days
The previous would make a sign that would rent region 'epic_store' for '200' of your economy currency for 7 days. Once rented properties expire, the region is automatically put back up for rent. If the renter has auto-renew turned on, the property will be renewed to them if they have the available money. See notes for information about sign replacement.
Buy a Region
- The player must enter buy mode by typing /buyregion
- The player must right-click a BuyRegion sign.
(note: if the player right-clicks a BuyRegion sign while not in buy mode, they will be prompted to enter buy mode.)
(note: if RequireBuyMode is set to false the player will not be required to enter buy mode before buying or renting a region.)
Rent a Region
- Same as buying a region, see above.
Player Commands
- /buyregion - toggles buy mode
- /buyregion renew <region> - renews rental on <region>
- /buyregion autorenew - shows current autorenew status
- /buyregion autorenew <true/false> - sets auto-renew for all of the player's rentals
- /buyregion help - shows help screen
Admin Commands
- /buyregion buycheck <player> - checks total bought regions for <player>
- /buyregion rentcheck <player> - checks total rented regions for <player>
- /buyregion buyset <player> <amount> - sets total bought regions for <player>
- /buyregion rentset <player> <amount> - sets total rented regions for <player>
- /buyregion buymax - displays current BuyRegionMax
- /buyregion buymax <amount> - sets BuyRegionMax
- /buyregion rentmax - displays current RentRegionMax
- /buyregion rentmax <amount> - sets RentRegionMax
- /buyregion buymode - shows the current RequireBuyMode setting
- /buyregion buymode <true/false> - sets RequireBuyMode
- /buyregion buyperms - shows the current RequireBuyPerms setting
- /buyregion buyperms <true/false> - sets RequireBuyPerms
- /buyregion rentperms - shows the current RequireRentPerms setting
- /buyregion rentperms <true/false> - sets RequireRentPerms
- /buyregion evict <region> - performs an eviction on <region>
- /buyregion help - shows all commands
(note: Setting BuyRegionMax or RentRegionMax to 0 makes it unlimited)
Timespans
Timespan Examples
- 1 day
- 15 secs
- 20 mins
- 5 h
Accepted Time Values
- Seconds: s, sec, secs, second, seconds
- Minutes: m, min, mins, minute, minutes
- Hours: h, hour, hours
- Days: d, day, days
Config Options
- BuyRegionMax - max regions a player can buy with BuyRegion
- RentRegionMax - max regions a player can rent with BuyRegion
- CheckExpirationsInMins - how often to check for expired rented regions IN MINUTES
- RequireBuyMode - is buy mode required to be on to use buy/rent signs? Recommended: true
- RequireBuyPerms - require the player to have buyregion.buy to buy a region
- RequireRentPerms - require the player to have buyregion.rent to rent a region
- DateFormat - Sets the date format - Accepted Values: Default, US, EU
Date Formats
- Default - year/month/day
- US - month/day/year
- EU - day/month/year
Message Configuration
- All messages that are sent to a player can be changed by editing your config.yml in the 'Messages' section.
- Between the name of the field and the contents you should be able to figure out which is which.
- Sentences that seem to just end will probably have the value placed there.. consider this when making changes.
- No admin messages can be changed... would be a lot of work on my end for nothing.
Notes
- Auto-renew is defaulted to OFF for all players. They will only need to turn it on once, however.
- Only use 1 [RentRegion] sign per rentable region. For performance reasons it does not properly support multiple signs per region. It will let you create them, but it will probably lead to strange behavior. This applies to [BuyRegion] signs also.
- I would recommend trying to avoid original RentRegion signs being destroyed.. the replacement of them is still a little sketchy for positioning. I do plan to look at this but was trying to get a release out with the renting for all the people currently dead in the water from that other plugin going inactive.
- The CheckExpirationsInMins config setting can accept decimals.. so 0.05 = 3 seconds for instance. Although I wouldn't recommend going less than 0.5 for that setting. With a lot of rented regions it could be a taxing operation. Best left to 5+ minutes for average servers that rent things for days, and not minutes or seconds.
- I didn't bother making the signs indestructible as the idea is to place it inside the already defined protected region.. which would typically make it unbreakable anyways. Furthermore, for performance reasons I'm trying very hard to avoid hooking the block break event.
-
View User Profile
-
Send Message
Posted Jul 4, 2012How can OP to create BuyRegion sign for one of player? For example money will get player instead OP
Suggestions: It is necessary to somehow associate the plugin with LWC, so that all objects within the region will pass into the possession of the buyer.
-
View User Profile
-
Send Message
Posted Jul 4, 2012I see 1 problem with the rent system right now. People can not renew their rent period before the old period runs out. Then we can get this issue: Player A rents a plot. 15 sec after the time runs out Player B rents the plot and player A can not keep his plot because he had no real chance to refresh his rent. What is needed is the possibility to refresh the rent before the time runs out.
-
View User Profile
-
Send Message
Posted Jul 3, 2012Thankyou, works perfect. Our market has 52 shops that were rented out. No issues so far!
Just want to double check - at the end of the rental period (7 days for me) the renter has to have the money on them and its auto renewed, right?
any chance down the road of linking this up so it works with Towny Banks? This way its easier for people to pay and not forget to have the money on them
Just an idea
-
View User Profile
-
Send Message
Posted Jul 3, 2012@erdrickk
EDIT: looks like it was approved.. download away!
It kinda depends on the approval, but I've never seen it be longer than 14 or so hours... sometimes much quicker, hard to say unfortunately. I was kinda hoping that after so many releases I'd get some sort of status that allows my releases to go out quicker, but I guess its better for everyone that they check all files for malicious code.
also, Thanks for the donation, my first one! Much appreciated :)
@Maxi: thanks for the kind words!
-
View User Profile
-
Send Message
Posted Jul 3, 2012Excellent plugin. Easy to setup and error free. Awesome.
Agree'd on the /evict command, that would be great.
-
View User Profile
-
Send Message
Posted Jul 3, 2012Also - I tossed a donation your way as promised. Thank you for adding the rental max option
-
View User Profile
-
Send Message
Posted Jul 3, 2012How long does it take for bukkit to approve the file? *Excited*
Thank you so much for this. This makes a huge difference to my server.
-
View User Profile
-
Send Message
Posted Jul 3, 20121.0.6 was just uploaded with a config value for limiting rented regions. (waiting on bukkit approval)
NOTE: this will not work retroactively.. so.. it only counts regions that are rented after you update.
NOTE #2: Some admin commands have changed... review the command list up above.
And yea esq, thanks man.. kinda funny that the one that was an after-thought to release became the most active. Guess a lot of people were in the same boat I was in when I originally wrote it =D
-
View User Profile
-
Send Message
Posted Jul 3, 2012+1 Really Good, And Ironically Popular Compared to The other Plugins youve made ;)
-
View User Profile
-
Send Message
Posted Jul 3, 2012@TXFire4305
I was thinking about something similar earlier today actually.. but I like your command name better. I will add an /evict command in the coming days.
for the format of that... you think it should be like:
/evict <player> <region>
or just
/evict <region> (clearing all members from it)
As for region dimensions.. don't have much space on the sign, and no free lines ATM... is this really that beneficial? I would imagine most sold/rented regions are kinda obvious...
(a house/hotel... plot in a city/town... a building... etc..)
-
View User Profile
-
Send Message
Posted Jul 3, 2012Is an /evict command in the works to remove a player from the region and reset the rent sign?
Also, would it be possible to get the region dimension on the sign as in SimpleRegionMarket?
Lastly..thank you and congrats. We are currently running this plug in on the 50 player Atlantis Earth TEKKIT server with success!
-
View User Profile
-
Send Message
Posted Jul 3, 2012@gbsn
Thanks a bunch!
Glad we got you fixed up =D
-
View User Profile
-
Send Message
Posted Jul 3, 2012The (2) it was i tried do download many times, and the win renamed it (1), (2)... nvm. And yes, i was missing vault, so, sorry for my dumbness!!!
Great plugin, iam donating 1 dollar now, and 10 dollar if my player manage to use it properlly! thanks.
-
View User Profile
-
Send Message
Posted Jul 3, 2012@gbsn
looks like you are missing vault... also possibly trying to load the same plugin twice... Strange that it is named ...(2)
If you have vault, make sure it is the latest version.
-
View User Profile
-
Send Message
Posted Jul 3, 2012I would use, but... Any way, nice initiative!
2012-07-03 14:53:05 [SEVERE] Could not load 'plugins/BuyRegion(2).jar' in folder 'plugins' org.bukkit.plugin.UnknownDependencyException: Vault at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:195) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213) at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:550) at org.bukkit.Bukkit.reload(Bukkit.java:182) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479) at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:475) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:612) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:581) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
-
View User Profile
-
Send Message
Posted Jul 3, 2012@erdrickk
Lol, well IM not going to hold you hostage but I could possibly get that up tonight... :)
-
View User Profile
-
Send Message
Posted Jul 3, 2012@JDigital1337
Thanks JD - but think of it this way from a server admin point of view. Someone could easily troll the server by renting out all the shops and raising the prices just to avoid this isn't fair to the legit players
Edit - May I ask how long till the next version? I have a massive new market waiting to be opened. Do Donations speed things up for you? lolol
-
View User Profile
-
Send Message
Posted Jul 3, 2012@erdrickk
Currently not a limit as it didn't really make sense to limit rentals... raise your prices =D
(I'll add it to the next version tho)
-
View User Profile
-
Send Message
Posted Jul 2, 2012is there not a config for max rental regions? right now my users can rent all the shops they want even with the buyregion set to 1 in the config
-
View User Profile
-
Send Message
Posted Jul 2, 2012Yes, this plugin could be a replacement for the other one.