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.
Is there a way i can set it up so they can only open/use things in that region when they rent it?
Hey dude. I have these signs posted on walls. I need them to not end up on the ground when the rent regions expire.
yay, another inactive modder... didnt get anny response for more than a week on me ticket...
Do the region reset themself as soon as the rent time is over? If no that would be an amazing feature imo
@haduke
Same issue, except I have had this plugin for a while. The signs randomly stopped functioning.
Is this working at all with Minecraft 1.6.2? I installed it and made the buy sign and nothing happened.
Is it possible to sale a region/house? That would be great if someone is build a house and sale it to someone else. This would be great for economy and bank accounts.
I am trying this out on my server, although when a user's rent expires, the region does not reset back to what it was before the rent started.
Is there any way to do this?
Thanks,
Dom
@Nick110
That seems a little strange to me to, I decided to try it out. I set it to 1 minute at 10:27 and it showed that it would end at 11:33 so I was really confused thinking I managed to reproduce the error. Then I looked to my other computer and noticed that the time on the sign matched it exactly. I am guessing maybe you should verify that the time on the server is the same as the time on the machine you are using since the time on my current machine is wrong I thought the plugin wasn't working (counting 1m as 1h and 7m) and then I checked the time on the machine hosting the server and it matched the time on the sign. The clock was off on my machine and not on the server, see if they both match.
After syncing the time on my machine it matched perfectly, I was surprised at it's accuracy after what you posted. It's very likely that either your server or your computer is not on-time and needs to be re-synced.
I'm new to this plugin so I'm sorry if this question has an obvious answer, but whenever I place a RentRegion sign, and someone rents it, it displays the wrong end time. I understand the hour being off due to timezones, but the minutes are off.
Right now it's 8/27/13 at 9:36 for me, and if someone rents a region for 1 day, the time that is shown is 8/28/13 at 8:00.
I understand if the hour is for the timezone behind mine, but I don't understand why the minutes are off so strangely. Any help would be appreciated... thanks.
I really like your plugin so I made you pics of the signs :) Here's a link to the gallery, I think they may need to be smaller but I am not sure. http://imgur.com/a/d3r0o#0
Does this update with the owners? I mean, If an owner is assigned or removed from the region via WG commands will the signs update?
Is it possible to add a purge command or option? PLEASE? I have it set up on my server that after a certain amount of inactivity from the server a player's information is reset. I want to do this with the regions they purchase as well. I use this in a market place setting and need to be able to remove players who are no longer active..
Also, it doesn't appear to me that these signs are updating with exsisting owners of the regions on the signs. This is quite troublesome as well, as I'm requiring the already owners of these regions to come and click (purchase) a region they already own...
Looks like a good plugin...
Would this be compatible with GreifPrevention? Like, after I used World Guard to create a Region, then put a GreifPrevention Admin claim, would it work?
@JDigital1337
But the sign doesn't change at all, it still says "For Sale" or "For Rent"? Some kind of visual indication that a region has been purchased/rented would be nice...
@sakura_blades
buying a region makes them the owner to the WG region.
renting a region makes them a member for the duration.
Once a sign is used, it is disabled... (in the case of renting, until the rental term expires)
I think that answers you...
Do the rent/buy signs update with the current owner?
I am currently using Plot Manager and this plugin is supposed to do this for my players. Displays the current owner, last login, and has seperate buy/sell signs that update either the region is owned or not. HOWEVER, PM is not working properly on my server and I am quite tired of fighting with it.
This looks like the best option for me to switch to, but I need to know if Buy/Rent signs will update with the region in use/claimed or if it will allow someone else to come along and swipe the region from under these players...
Does version 1.1.2 of buy-regions work with minecraft 1.5.2 or i have to use another buyregions version?
Please release this source so I can fix the issue with it, and update it!
Hello! You guys should add the ability to leave your plot, ex. /buyregion leave <region>
It may not be 1.6.2 but it seems to be working fine with my 1.6.2 server with worldguard, vault, world edit, and my economy plugin are all being 1.6.2...