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.
Out of wonder, I am making a factions server with a small town, Ill allow players to rent or purchase property. This being said I have limited the number of chests in each store and do not wish to let them alter the store, but use the chests for their own stores to buy/sell. Will this work for that? If not any sugestions?
Can you add a command for players to tp to s free plot? (Just like simple regions market)
Would it be possible for a separate permission for auto-renewing or maybe a config option for disabling auto-renews? I don't want users to be able to renew their regions automatically on my server :)
i restarted the server and everything started working fine. i'll tell you if i have future problems. thanks anyway :0
@Sharkie77
Do you get any errors in the console? or anything that doesn't look normal?
When will this work for 1.7.2? I need it for a server im constructing.
I have one problem: I have a Prison server and I use this plugin for selling / renting cells. One player bought a cell, but he can not get into it like all the other players - he can not open doors, chests, etc. When I went to the cell of the player, I noticed that his name did not fit on the sign because it was too long .. Could that be the reason and how to fix it? (All other players didn't have issues with this)
Would you be able to add support so in the config you can specify an account for the money to go to when regions are bought/rented
Does anyone know the proper formatting for using this with World Guard? So I'm setting up cells where people can buy the region and then go inside of them. Problem is even if you don't own the cell you can still press the button in get in, however I'm trying to make it so these regions are members only.
So you cannot access them unless you're a member of that region. Problem is, when you buy them, it makes you a member of that region right? But it's not like I can set up a group because everyone has a unique name. I need some kind of like "If you're a member in this region, you can access it, if not, nothing" type solution.
Help?
So, lets say I have a region, and no one may use chests inside that region, but someone will buy it. Will the person who bought it be able to use chests?
Is it possible to share 1 region over serveral people if one wishes to do so? i.e Player 1 bought a region and would like his friend player 2 to be also able to modify/open chests.
Is it possible that for example a player buys an empty house, he could decorate the place but couldn't edit the blocks that were there before he bought it?
Is it possible to resell the region/house you've bought, for at least the price it was or higher.
I.E Player 1: /BuyRegion sell [regionname] [price] [the player name you want to sell it to], player 2 gets a message "player 1 offered to sell his region "[regionname"] for [price], type /BuyRegion playeroffer accept/decline/ignoreplayer to respond"
After that the ownership transfers? D:
edit1:
Is it possible to extend the time or the rented period if one wishes to? (I.E. Player 1 rents a house for 7 days and likes it, at day 4 he decides he'd like to keep it another 7 days)
Other than that I'm quite excited to try this plugin out :)
I'm sorry if I asked questions I could find myself somewhere on this page (I did read all the text on this page)
Could you add a command to check what region a player has rented/bought? As well as a tp command of some sort maybe?
@KoW210
It will be fixed in the next release, (Hopefully) :P
@matze135
I will check to see if other players are having this, If so I will patch it as it may be a config error on your end
@Timothyyy
We can look into it for you :)
@BuildingDave
I don't quite understand :( Sorry!
@scorpionralle
:D Thanks
@Luke199
That is the full error. It occurs every 5 minutes.
http://pastebin.com/BGSwzXrS
Hi.
I have a little problem. I set "BuyRegionMax: 2" but the player can buy more regions.
Is there any way you could set up gold as an acceptable currency? My server has a physical currency, and this would be AMAZING.
Hello I hope the google translation is understandable.
Would it be possible the plugin Multiple Servers to make usable. The maximum regions on mysql etc? I have 5 servers which are connected by bungee. Currently I use SRM and would also change. Is something possibly already in the pipeline?
greeting Dave
Great plugin. It works ... Go on with that!
@KoW210
Can you upload the full error to pastebin?
hey I keep getting this every 5 minutes in my console.
14:42:32 [Server thread/WARN]: java.lang.NullPointerException 14:42:32 [Server thread/WARN]: at com.region.BuyRegion$1.run(BuyRegion.java:247) 14:42:32 [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:53) 14:42:32 [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 14:42:32 [Server thread/WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:587) 14:42:32 [Server thread/WARN]: at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) 14:42:32 [Server thread/WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) 14:42:32 [Server thread/WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) 14:42:32 [Server thread/WARN]: at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617)
@Kamaling
Can you list your plugins on the server.