WorldGuard 土地所有权
用途
允许管理员向用户收取费用,以拥有 WorldGuard 区域并在其区域内设置特定的标志(flags)。此功能此前通过插件实现,即对用户输入的特定命令(如 "/region claim *")收费。但这种方式的问题是:即使因区域重叠或名称已被占用等错误导致区域创建失败,用户仍会被收费。本插件解决了该问题,并增加了创建不同类型区域以及对在区域内设置标志进行收费的功能。
使用示例
- 玩家1: /region claim myregion
- 仅当区域拥有成功时(无重叠、名称未被占用等),玩家1才会被收取 $1000。
- 玩家1: /region flag myregion pvp deny
- 如果他的区域尚未设置 pvp 标志,则玩家1将被收取 $500。
安装与配置
- 首先你需要 WorldGuard 和 Vault 插件。
- 下载 WGLandClaim.jar
- 将其放入服务器的 plugins 文件夹中
- 运行服务器以生成配置文件
- 根据需要编辑配置文件,参见配置说明:
- 重新加载插件或重启服务器
功能特性
- 对用户输入 /region claim <name> 收取费用
- 如果区域拥有失败,则不收费
- 对用户在其区域上设置标志收取费用
- 仅在设置标志时收费,后续在 allow 和 deny 或其他标志值之间切换不再收费
- 可选的、可开关的“地块(plot)”创建功能,使用 /region claimplot <name>,允许创建小型区域,且限制为位于你已拥有的区域内的子区域。
- 可在配置文件中指定对区域、地块和标志收取的费用金额
- 支持使用 UUID 和玩家名称进行区域拥有
权限设置
默认情况下未设置任何权限。你需要先设置一些 WorldGuard 和 WorldEdit 权限才能开始使用,详见下一节。
- wglandclaim.* : 用户可拥有地块(若启用),免除所有区域、地块和标志的限制与费用。
- wglandclaim.claimplot: 允许用户拥有地块(若启用)。
- wglandclaim.bypass.*: 用户免除所有区域、地块和标志的费用与限制
- wglandclaim.bypass.claim: 对拥有区域无收费或任何限制。
- wglandclaim.bypass.claimplot: 对创建地块无收费或限制。
- wglandclaim.bypass.flags: 对设置区域标志无收费。
必要的 WorldGuard/WorldEdit 权限
你需要添加其他权限才能使本插件按预期工作。
必需权限
- worldedit.wand
- worldedit.selection.pos
- worldguard.region.claim
- worldguard.region.flag.regions.own.*
- worldguard.region.addowner.own.*
可选权限
- worldedit.selection.expand : 用于自动扩展用户的区域,详见配置文件。
- worldguard.region.flag.flags.<flagname>.* : 允许用户在他们的区域上开启或关闭特定标志。将 <flag> 替换为你想要的标志名称。
使用方法
使用木斧左键和右键选择两个点。
感谢 ALLISKATA 在想法和头脑风暴方面提供的帮助。
WorldGuard Land Claim
Purpose
Allows administrators to charge users money for claiming a WorldGuard region and setting specific flags in their regions. This task was previously accomplished with plugins that charge for a specific command typed, like "/region claim *". The issue with this is that it charges the user even when a region is not successfully created due to errors with region overlap or names already being taken. This plugin solves that issue and adds the ability to create different types of regions and charge for setting flags in a region.
Example Usage
- Player1: /region claim myregion
- Player1 is charged $1000 if and only if region claiming succeeds (does not overlap, region name taken, etc).
- Player1: /region flag myregion pvp deny
- Player1 is charged $500 if his region does not already have the pvp flag set.
Installation & Config
- You need WorldGuard and Vault plugins first.
- Download WGLandClaim.jar
- Place in your server's plugins folder
- Run your server to generate the config
- Edit the config to your liking, see config at:
- Reload the plugin or restart the server
Features
- Charge users money for typing /region claim <name>
- Does not charge if the region claiming fails
- Charge users money for setting flags on their region
- Only charges when set, does not charge toggling between allow and deny or other flag values afterwards
- Optional, toggleable "plot" creation with /region claimplot <name>, allowing for small region creation that is limited to regions within a region that you already own.
- Specify amounts of money to charge for regions, plots, and flags in config
- Supports claiming with UUID and player name
Permissions
No permissions are set by default. You will need to set some WorldGuard and WorldEdit permissions to start, see the next section.
- wglandclaim.* : User can claim plots if enabled, exempt from all limits and costs for regions, plots, flags.
- wglandclaim.claimplot: Allows user to claim a plot if enabled.
- wglandclaim.bypass.*: User exempt from all region, plot, flag costs and limits
- wglandclaim.bypass.claim: No charge or any limits on claiming a region.
- wglandclaim.bypass.claimplot: No charge or limits for creating plots.
- wglandclaim.bypass.flags: No charge for setting flags on a region.
Necessary WorldGuard/WorldEdit Permissions
You need to add some other permissions in order for this plugin to function to your desire.
Required
- worldedit.wand
- worldedit.selection.pos
- worldguard.region.claim
- worldguard.region.flag.regions.own.*
- worldguard.region.addowner.own.*
Optional
- worldedit.selection.expand : This is used for auto-expanding users region, see the config.
- worldguard.region.flag.flags.<flagname>.* : Allows a user to flag a specific flag on or off on their region. Replace <flag> with desired flag.
How to use
Select 2 points with the wooden axe using left and right click.
Credit to ALLISKATA for help with ideas and brainstorming.
评论 0
登录后参与评分
还没有评论,来抢沙发吧