由于 BukkitDev 团队成员已离开,我不再在此处更新此插件。请访问 Spigot 上的讨论帖,我将很快把所有更新和信息迁移过去——如果插件发布开始被接受,我会考虑将下载链接也移回 Bukkit。至于其他插件,您可以在这里查看我的上传内容。
允许你创建告示牌,用于购买或租赁 WorldGuard 区域。
该插件兼容所有 Vault 支持的经济系统,因为它需要安装 Vault 以提供经济支持。
如遇问题请提交工单,否则问题可能会在评论区中被遗漏。
插件工作与更新
我已推送构建版本 1.1.7(待发布)以消除错误并修复任何出现的问题。该插件已在 Spigot / Bukkit 1.7.8 构建上测试,运行成功且无报错。请将你遇到的任何问题报告在评论中,以便我们一起排查和修复这些问题的。:)
附:粘贴错误日志时请尽量使用 Pastebin。
UUID:
带有 UUID 安全支持的构建版本将在不久后发布,同时会附带一些已发现的错误修复。
安装
- 将 BuyRegion.jar 放入你的 plugins 目录。
- 执行 /reload 重载插件。
- 根据需要配置权限。
- 享受吧!
权限
- buyregion.create - 允许创建 [BuyRegion] 和 [RentRegion] 告示牌。
- buyregion.admin - 允许使用管理员命令。
- buyregion.exempt - 允许玩家绕过 BuyRegionMax 限制
- buyregion.buy - 允许玩家购买区域(如果配置要求)
- buyregion.rent - 允许玩家租赁区域(如果配置要求)
(注:OP 拥有所有节点权限)
使用方法
创建 BuyRegion 告示牌
- : [BuyRegion]
- : <区域名称>
- : <价格>
- : 未使用/任意
示例告示牌
- [BuyRegion]
- epic_store
- 200
上述设置将创建一个出售 'epic_store' 区域的告示牌,价格为你的经济货币 '200'。
创建 RentRegion 告示牌
- : [RentRegion]
- : <区域名称>
- : <价格>
- : <时长>
示例告示牌
- [RentRegion]
- epic_store
- 200
- 7 days
上述设置将创建一个租赁 'epic_store' 区域的告示牌,价格为你的经济货币 '200',租期为 7 天。
租赁属性过期后,该区域会自动重新上架出租。如果租客开启了自动续租,且其账户中有足够资金,则会自动为其续租。有关告示牌替换的信息,请参阅注意事项。
购买区域
- 玩家必须通过输入 /buyregion 进入购买模式。
- 玩家必须右键点击 BuyRegion 告示牌。
(注:如果玩家在非购买模式下右键点击 BuyRegion 告示牌,系统会提示其进入购买模式。)
(注:如果 RequireBuyMode 设置为 false,则玩家在购买或租赁区域前无需进入购买模式。)
租赁区域
玩家命令
- /buyregion - 切换购买模式
- /buyregion renew <区域> - 续租 <区域>
- /buyregion autorenew - 显示当前自动续租状态
- /buyregion autorenew <true/false> - 设置玩家所有租赁的自动续租功能
- /buyregion help - 显示帮助界面
管理员命令
- /buyregion buycheck <玩家> - 检查 <玩家> 购买的区域总数
- /buyregion rentcheck <玩家> - 检查 <玩家> 租赁的区域总数
- /buyregion buyset <玩家> <数量> - 设置 <玩家> 可购买的区域总数上限
- /buyregion rentset <玩家> <数量> - 设置 <玩家> 可租赁的区域总数上限
- /buyregion buymax - 显示当前的 BuyRegionMax 值
- /buyregion buymax <数量> - 设置 BuyRegionMax 值
- /buyregion rentmax - 显示当前的 RentRegionMax 值
- /buyregion rentmax <数量> - 设置 RentRegionMax 值
- /buyregion buymode - 显示当前的 RequireBuyMode 设置
- /buyregion buymode <true/false> - 设置 RequireBuyMode
- /buyregion buyperms - 显示当前的 RequireBuyPerms 设置
- /buyregion buyperms <true/false> - 设置 RequireBuyPerms
- /buyregion rentperms - 显示当前的 RequireRentPerms 设置
- /buyregion rentperms <true/false> - 设置 RequireRentPerms
- /buyregion evict <区域> - 对 <区域> 执行驱逐操作
- /buyregion help - 显示所有命令
(注:将 BuyRegionMax 或 RentRegionMax 设置为 0 表示无限制)
时间跨度
时间跨度示例
- 1 day
- 15 secs
- 20 mins
- 5 h
支持的时间单位
- 秒:s, sec, secs, second, seconds
- 分钟:m, min, mins, minute, minutes
- 小时:h, hour, hours
- 天:d, day, days
配置选项
- BuyRegionMax - 玩家使用 BuyRegion 可购买的最大区域数量
- RentRegionMax - 玩家使用 BuyRegion 可租赁的最大区域数量
- CheckExpirationsInMins - 检查已过期租赁区域的频率 以分钟为单位
- RequireBuyMode - 是否必须开启购买模式才能使用购买/租赁告示牌?推荐值:true
- RequireBuyPerms - 要求玩家拥有 buyregion.buy 权限才能购买区域
- RequireRentPerms - 要求玩家拥有 buyregion.rent 权限才能租赁区域
- DateFormat - 设置日期格式 - 支持的值:Default, US, EU
日期格式
- Default - 年/月/日
- US - 月/日/年
- EU - 日/月/年
消息配置
- 所有发送给玩家的消息均可通过编辑 config.yml 中的 'Messages' 部分进行修改。
- 你可以通过字段名称和内容之间的对应关系自行判断其含义。
- 看起来突然结束的句子,其占位符值通常会插入其中……在修改时请考虑这一点。
- 无法更改任何管理员消息……对我来说改动工作量巨大且毫无意义。
注意事项
- 自动续租默认对所有玩家为 关闭。不过他们只需开启一次即可。
- 每个可租赁的区域仅使用一个 [RentRegion] 告示牌。出于性能原因,它并不支持在一个区域内放置多个告示牌。虽然系统允许你创建多个,但这可能会导致奇怪的行为。[BuyRegion] 告示牌也适用此规则。
- 建议尽量避免破坏原始的 RentRegion 告示牌……替换它们的定位功能目前仍有些不太稳定。我计划对此进行改进,但当时正试图尽快发布包含租赁功能的版本,以帮助那些因另一个插件停止维护而陷入困境的用户。
- CheckExpirationsInMins 配置项可以接受小数……例如 0.05 = 3 秒。尽管我不建议将该设置低于 0.5。如果存在大量租赁区域,频繁检查可能会带来较大的性能负担。对于通常按天而非分钟或秒来租赁物品的普通服务器而言,最好将其保持在 5 分钟以上。
- 我没有使告示牌变得不可破坏,因为设计意图是将其放置在已定义的保护区域内……这通常会使告示牌本身就无法被破坏。此外,出于性能考虑,我极力避免挂钩方块破坏事件。
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧