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.
Would I be able to set this up to where they can buy the regions with Emeralds?
http://pastie.org/private/6qpxg8i63k2jrcrbffhygg Getting this error :)
Could you please add "buyregion.autorenew"?
i dont want my users to be able to use autorenew true
thank ya.
I keep getting this error. The issues that it supposedly causes are that... 1. Anyone can rent/buy another persons rented/bought area. 2. When someone rents something, they do not get a message, and it will take their money without adding time to the rent time. 3. People cannot renew rented regions, only rebuy them.
22.04 19:27:17 [Server] SEVERE at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) 22.04 19:27:17 [Server] SEVERE at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407) 22.04 19:27:17 [Server] SEVERE at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474) 22.04 19:27:17 [Server] SEVERE at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) 22.04 19:27:17 [Server] SEVERE at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:510) 22.04 19:27:17 [Server] SEVERE at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.04 19:27:17 [Server] SEVERE at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:53) 22.04 19:27:17 [Server] SEVERE at com.digitizer.Region.BuyRegion$1.run(BuyRegion.java:246) 22.04 19:27:17 [Server] SEVERE java.lang.NullPointerException
Getting this error exactly ever 60 seconds, no files were touched in the Plugins/BuyRegion so I don't see how anything could now be missing unless the plugin or another plugin edited the file(s). Deleting the rent region and re-creating it will temporarily fix the problem, but it reappears after a couple days of server up time. I'm using the current beta Bukkit build and your most recent version of BuyRegion.
http://pastebin.com/XL4Pw6cw
I will be creating a tutorial for all of you that don't know how to use it :D! I hope you can post it somewhere above if its a great tutorial JDigital1337!
http://pastie.org/private/qw3gga5qtfptthtcztyzyq
Seeing that error randomly.
Still using it in 1.5 without issues that I know of.
My signs dont seem to be changing and it will take money from the player even after they have already rented it.
Works for 1.5.1?
I wanted to report some errors:
First of all, at one point I did see some java.io.EOFException errors but they seem to have gone away. Now I see the below upon restarting the server. Also, it seems we cannot rent regions. Thanks!
2013-04-02 07:58:30 [SEVERE] java.lang.NullPointerException
2013-04-02 07:58:30 [SEVERE] at com.digitizer.Region.BuyRegion$1.run(BuyRegion.java:246)
2013-04-02 07:58:30 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:53)
2013-04-02 07:58:30 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344)
2013-04-02 07:58:30 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:512)
2013-04-02 07:58:30 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225)
2013-04-02 07:58:30 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476)
2013-04-02 07:58:30 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409)
2013-04-02 07:58:30 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
@TheDavroar
You need to set the priority of the region that they are buying higher than the priority of whatever region it is in.
@TheDavroar
I got mine working, make sure your region is not inside another region that might be denying you access, also check your build flag for the region, try to determine if you want to set as allow, none, or deny. I have just started to get into worldguard regions more now that I am building a prison world on my server, and I can tell you that it is very tricky, but worth the effort in the end. P.S. one last tip make sure that you expand your region (in all directions, don't forget up and down if you need it) to include all the items and area you want the person to get access to.
When someone buys a region, they still have no permission to place and break stuff in that region.. How can I fix this, or is this a known bug?
Hope you will answer soon..
Thanks in advance!
Any news on an update?
Когда обновление будет? Уже 1.5.1 версия вышла, а плагин и на предыдущих версия глючить начал...
when people rent a region they cant use chest's brewery stand and more items, but they can open doors and use the bed.. can anyone tell me how i set so that they can use everything in the region they own?
Is this 1.5 compatible?
If this plugin were like SimpleRegionMarkets where you can put properties up for an autorenewing rent with a sign where they can cancel the rent by right clicking and after a configurable period of time it clears the blocks they placed, and if, unlike with SimpleRegionMarkets, I could manage to get the damn thing to work, then I'd definitely use this. The inability to have it autorenew by default is a dealbreaker, and the assumption that signs are always going to be inside the property as opposed to in a protected region outside of it is also a dealbreaker. However, as I can't get SimpleRegionMarkets to work, I'm currently without a plugin. Does anyone have any suggestions?
How do I set the regions to rent out!