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.
Hello again.
I think I found another bug. it's less important, just a small bug I want to report =)
When you type "/buyregion help" it shows the help menu, but it also turns on the buy mode (just happens in normal mode. If you are OP mode on and type "/buyregion help" it doesn't turn on the buy mode)
@SmashboxGaming
Yes they are, they are still in the group listed in group manager
@MattexFilms
Interesting - Are they still listed as members on the regions after the restart?
I have created a shop area for players to rent a shop for 7 days. The area is in the spawn region, each shop is a region and is parented to the spawn region. When the player (who isn't op) rent the shop they are able to build anywhere within the boundaries of the shop and not outside it, they can make chest shops which other players can buy and sell from. But when I restart the server the user no longer has permission to build inside their own shop or use the chest shop. Any ideas?
I am using World Guard for the regions.
Just what I've been looking for but one question, I've set up these shops/houses in spawn and I want people to rent them but when they have rented them they cant place any blocks. I also did the parent thing.
@JDigital1337
Working great. Thank you very much.
@SmashboxGaming
:)
Let me know how it goes for ya...
This is exactly what I was looking for!
@cet0
region setparent <smallregion> <bigregion>
(/me wonders why he's getting asked about WorldGuard issues... you know WorldGuard has a website too...)
hi ! thanks for your job !
I create a shop capital and my user can't build in my RentRegion. The Rentregion are parent to global region in WG.
Thanks :)
@JDigital1337
Sure but i need If rent time end ,region automaticily restore the back?
@YunusPhp
I'm never going to give the ability to hide that you use my plugin...
Funny that you would even ask that.
@JDigital1337
I need the templates config because ı need change sign tags and If rent time end ,region automaticily restore the back? I need this.
@xJoshJx - I do what I can =D Thanks!
@AsboTehG - Thanks for the kind words! I do find it pretty funny that the convicts have to rent their cell tho.. I think I would not pay and get evicted, freedom!
@YunusPhp - Being as I only speak English and bad English, would be pretty tough for me to translate it. Spamming my comments and private messages with the same (somewhat rude) message over and over again certainly motivates me to help you as well!
Amazing plugin! exactly what I've been looking for, for my jail server. now the convicts can rent a cell. :D
@JDigital1337
See you are the type of plugin developer that I like. Listens and is quick about it.
Just uploaded 1.1.1
It contains /buyregion evict - along with help screen for users and the long overlooked ability to check total rented regions of a player.
Enjoy =D
Hey man, Josh here again... I love what you're doing. Great work... this has probably got to be one of the better plugins for this out there.
One thing I reallllly would love for you to implement.... /unrentregion If this command exist I would be using it all the time. It would be pretty simple to implement... just have the command skip waiting the timespan and take actions as if the player has autorenew off and as if he ran out of money.
We have a large market where people can rent a shop to use. I am constantly needing to unrent players from the shops they own because destroying it isn't doing any good.. as afterwards it comes up -restricted-
Let me know what you've got in plan.... I would love to help you out with this.
hmm explain more cause i think that's what i might be doing wrong.
... nevermind it started working... i went in and manually wrote the parent is area01 and it works... people just cant place signs on the grounds only the walls but they can place bricks and such
Check the WorldGuard docs as that is a function of worldguard, I always just use setparent.. works fine.
you're not forgetting to add them to the region after you set the parent, right?