SecureZone
Bukkit 插件,用于限制玩家进入或离开特定区域。
该插件会监控玩家的移动和传送行为。
按当前实现方式,如果玩家没有相应权限,无论传送来源如何,插件都会阻止玩家从 KEEPIN(禁止离开)类型的区域传送出去。这主要是因为当检测到传送时,插件无法判断是谁“发起”了这次传送。
目前定义的区域类型包括:
- KEEPIN:除非玩家拥有针对该区域的特定权限,否则将玩家保留在该区域内。
- KEEPOUT:除非玩家拥有针对该区域的特定权限,否则禁止玩家进入该区域。
本插件需要安装 WorldEdit,因为它使用 WorldEdit 来选择要创建的区域。
安装
将 SecureZone.jar(或 SecureZone-version.jar)放入你的 plugins 目录中。
目前 SecureZone 无需手动配置。配置文件用于保存当前定义的保护区域,并将在必要时自动创建。
命令
/securezone
提供你有权运行的命令的帮助信息。
/securezonecreate <zone> [zonetype]
创建指定名称的区域,可选地指定类型,默认为 KEEPOUT。
/securezonedelete <zone>
删除指定名称的区域
/securezonemodify <zone> <zonetype>
修改现有区域的区域类型
/securezonelist [world]
列出当前定义的区域。
如果指定了可选的世界参数,则仅列出该世界中的区域。
/securezonevisit <zone>
将发送者传送到该区域的近似中心。
此功能旨在帮助你在忘记区域位置时找到它们。
上述每个命令都支持别名 sz 来替代 securezone,例如 /szlist。
所有“非帮助”命令也支持缩写别名 szX,其中 X 为命令的首字母。(例如 /szc 是 /securezonecreate 的别名。)
权限
- securezone.admin:所有命令的父级权限,并可无限制访问所有区域
- securezone.create:创建区域
- securezone.delete:删除区域
- securezone.modify:修改区域
- securezone.list:列出区域
- securezone.visit:访问区域
- securezone.ignorezones:授予对所有区域的无限制访问权限
每个命名的区域都引用一个名为 securezone.ZoneName 的权限。
对于 KEEPIN 区域,需要此权限才能离开该区域。
对于 KEEPOUT 区域,需要此权限才能进入该区域。
构建插件
如果你有兴趣,该插件的源代码托管在 GitHub 上。
该插件使用 Maven 进行构建。
SecureZone
Bukkit Plugin to restrict players to or from zones.
The plugin watches both player movement and player teleports.
As currently implemented, the plugin should prevent a player from teleporting out of a KEEPIN zone
if they don't have permission, regardless of the source of the teleport. This is primarily due to
the fact that where the teleport is detected the plugin can't tell who 'ordered' it.
The presently defined zone type are:
- KEEPIN: Keep players in the zone unless they have a zone-specific permission.
- KEEPOUT: Keep players out of the zone unless they have a zone-specific permission.
This plugin requires WorldEdit to be installed as it uses WorldEdit to select the zones to be created.
Installation
Place the SecureZone.jar (or SecureZone-version.jar) in your plugins directory.
Presently there is no manual configuration required for SecureZone.
The configuration file is used to hold the currently defined protected zones, and will be created as necessay.
Commands
/securezone
provides help for the commands you have permission to run.
/securezonecreate <zone> [zonetype]
Create the named zone of the optionally specified type which defaults to KEEPOUT.
/securezonedelete <zone>
Delete the named zone
/securezonemodify <zone> <zonetype>
Modify an existing zone's zonetype
/securezonelist [world]
List the currently defined zones.
If the optional world is specified, only zones from that world will be listed.
/securezonevisit <zone>
Transport the sender to the approximate center of the zone.
This was added to help you locate zones if you have forgotten where they lived.
Each of the above commands is aliased to suport sz in place of securezone like /szlist.
Each of the 'non-help' commands is also aliased to support 'szX' where X is the
first letter of the command. (For example /szc is aliased to /securezonecreate).
Permissions
- securezone.admin: Parent permission for all commands and unrestricted access to zones
- securezone.create: Create zones
- securezone.delete: Delete zones
- securezone.modify: Modify zones
- securezone.list: List zones
- securezone.visit: Visit zones
- securezone.ignorezones: grants unrestricted access to all zones
Each named zone references a named securezone.ZoneName permission.
For KEEPIN zones this permission is required to leave the zone.
For KEEPOUT zones this permission is required to enter the zone.
Building the plugin
Should you be so inclined, the source for the plugin is on GitHub.
The plugin is built with Maven.
评论 0
登录后参与评分
还没有评论,来抢沙发吧