BuyRegion 1.2

BuyRegion - Easily sell WorldGuard regions to players for currency

  1. Luke199
    [​IMG]

    This plugin 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.


    Milestones


    Spigot:
    25 Downloads
    125 Downloads
    8,005 Downloads

    Bukkit Dev:
    33,000 Downloads
    35,000 Downloads
    37,000 Downloads
    81,550 Downloads



    Plugin Information


    Installation

    1. Put BuyRegion.jar in your plugins directory.
    2. Do a /reload to reload your plugin or restart the server, a restart is recommended.
    3. Configure your permissions and the plugin if needed.
    4. 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)
    OPs have all nodes


    Usage
    Create a BuyRegion Sign
    1. : [BuyRegion]
    2. : <regionname>
    3. : <price>
    4. : unused/any
    Example Sign
    1. [BuyRegion]
    2. epic_store
    3. 200

    The previous would make a sign that would sell region 'epic_store' for '200' of your economy currency.



    Create a RentRegion Sign
    1. : [RentRegion]
    2. : <regionname>
    3. : <price>
    4. : <timespan>
    Example Sign
    1. [RentRegion]
    2. epic_store
    3. 200
    4. 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.


    Using the plugin


    Buy a Region
    1. The player must enter buy mode by typing /buyregion
    2. The player must right-click a BuyRegion sign.
    If the player right-clicks a BuyRegion sign while not in buy mode, they will be prompted to enter buy mode.

    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
    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.
    • I am using metrics to collect statistical data on the plugins usage. In no way does this collect any personal or private information, the specific system I use is currently bStats

Recent Reviews

  1. DaniLoffer
    DaniLoffer
    3/5,
    Version: 1.1.7
    The pluging works fine, but when I create the poster and click it it doesn't work, and yes, I am in buymonde, and when I am not in buy mode and I click it it says that I have to be in buymode... I have the vault economy
  2. Alry_FireBlade
    Alry_FireBlade
    5/5,
    Version: 1.1.7
    Its perfect the Plugin. I dont know somthing thats bad. even the thing with the buying mode is really good for rediting the signs without make them useless becouse you buy it. Just perfekt^^.
  3. Thijsje_r
    Thijsje_r
    5/5,
    Version: 1.1.7
    Perfect plugin!! Maybe you can add the option to customize the signs and if the time is expired, al the items in chests go to a personal echest
  4. konkred
    konkred
    5/5,
    Version: 1.1.7
  5. Buddelbubi
    Buddelbubi
    4/5,
    Version: 1.1.7
    Pls Pls add an command, with players can teleport to their regions,
    An Command to add friends and to sell regions
  6. Lohkdesgds
    Lohkdesgds
    5/5,
    Version: 1.1.7
    Just Perfect!
    Works really well with 1.11.2 Spigot version. Thanks!
    Will you keep it updated? I see that this plugin doesn't seems to need it, but, maybe upgrades? More options? Colors? Sign update when renewed? :3
  7. Blood
    Blood
    5/5,
    Version: 1.1.7
  8. jessepm123
    jessepm123
    4/5,
    Version: 1.1.7
    Works very well & is lightweight on my server, however, it could use some more customization options as far as signs (colors!).
  9. skilledpt
    skilledpt
    5/5,
    Version: 1.1.7
    Very nicee. Can you add colors to signs please?
    .
  10. stan1712
    stan1712
    5/5,
    Version: 1.1.7
    Very good plugin, I use it on my server and it works perfectly ! Maybe you can add some translation (i'm French) I can help you to do that translations ;)