Region Preserve 是一款非常简单、轻量的区域保护插件。它旨在帮助服务器管理员保护出生点、教程区和竞技场,而无需使用更高级的防破坏插件(如 WorldGuard)所带来的复杂性和麻烦。它并非用于普通玩家保护自己的土地。该插件的理念是:区域不仅受到保护,而且从定义之时起,在其存在期间都会被“保存”下来。
要体验本插件的效果,请加入:play.vanillaworld.org
功能特性
Region Preserve 能够保护由玩家选择两个角点所标记的任何长方体区域。区域的高度范围可从基岩层一直延伸到天空层。服务器管理员可以设置应用于所有区域的全球标志(例如生物生成和树叶腐烂),或者为每个区域单独设置特定标志。
选择区域时,请使用木棍左击一个方块作为位置 1,右击另一个方块作为位置 2。
命令
/rp create [name] - 根据所选点位创建一个名为 [name] 的区域。
/rp delete [name] - 删除名为 [name] 的区域。
/rp flag [region-name] [add/remove] [flag] - 为区域 [name] 添加或移除标志。
/rp info - 显示玩家当前所在区域的信息。
/rp max - 将选中区域的 Y 轴坐标最大值调整为从天空到基岩的全高。
/rp reload - 重新加载配置文件和区域文件。
/rp set [region-name] [enter/leave] [message] - 设置区域的进入和离开消息。可使用 %player% 代表玩家名称,以及颜色代码(例如 &1)。
/rp help - 显示此帮助信息。
权限
rp.edit - 允许创建和删除已保存的区域。
rp.build - 允许在已保存区域内放置或破坏方块。
区域标志
基本上,如果某个区域拥有某项标志,则对应的事件便允许在该区域内发生。例如,拥有 'PvP' 标志的区域将允许在该区域内进行 PvP 战斗。
加粗的标志为默认区域标志。
- use - 没有此标志的区域会阻止玩家打开箱子、工作台等物品。
- build - 拥有此标志的区域允许玩家建造和破坏方块。
- burn - 没有此标志的区域会阻止火灾蔓延。
- fade - 没有此标志的区域会阻止方块随时间融化/消失。
- grow - 没有此标志的区域会阻止植物生长(藤蔓/树木)和扩散(草)。
- leafdecay - 如果区域拥有此标志,树叶将会腐烂。
- explode - 如果区域拥有此标志,任何爆炸都会导致方块被破坏。
- bucket - 没有此标志的区域会阻止水桶的使用(放置和吸取液体)。
- monsterspawning - 如果区域拥有此标志,怪物将会生成(仅限怪物)。
- animalspawning - 如果区域拥有此标志,动物将会生成(仅限动物)。
- commands - 如果区域拥有此标志,玩家可以使用命令。
- mobdespawn - 如果区域拥有此标志,生物永远不会死亡/消失。
- pvp - 拥有此标志的区域允许进行 PvP;没有此标志则禁止 PvP。
- enderpearl - 没有此标志的区域会阻止玩家使用末影珍珠。
安装方法
只需将 RegionPreserve.jar 放入 plugins 文件夹并重启/重载服务器即可。系统将自动生成 config.yml 和 regions.yml 文件。请勿编辑 regions.yml 文件,仅可编辑 config.yml 文件。对配置进行任何更改后,请输入 /rp reload 以重新加载配置。
未来计划
更新日志
版本 1.4.2:
- 更新至最新的 Bukkit Dev 构建版
- 轻微的性能改进
版本 1.4.1:
- 修复了区域删除的问题
- 玩家不再能在受 PvP 保护的区域内使用弓
- 其他小 bug 修复(控制台不再报错)
- 基于 Java 6 编译
版本 1.4.0:
- RegionPreserve 会自动更新至 BukkitDev 上的最新版本。此功能可在 config.yml 文件中禁用。
- 区域现在以 YML 格式存储,以实现更快的加载速度并降低数据损坏的风险。
- 添加了 'enderpearl' 标志,以阻止玩家在受保护区域内使用末影珍珠。
- 从配置中移除了默认标志选项,从此以后所有区域必须单独设置其标志。
- 拥有权限的玩家以前无法在受保护区域点燃方块,现在可以了。
- 将发射器(dropper)添加到用户标志中。
- 添加了支持颜色(例如 &b)和玩家名称(%player%)的区域进入和离开消息。
源代码:
freelance 工作:
Region Preserve is a very simple, lightweight region protection plugin. It is intended for server owners to protect their spawn areas, tutorials and arenas without the complexity and hassle of using a more advanced anti-grief plugin (like WorldGuard). It is not intended for regular users to protect their own land. The idea of this plugin is that regions aren't just protected but are preserved from the moment they were defined for as long as the region exists.
To see this plugin in action join: play.vanillaworld.org
Features
Region Preserve is capable of protecting any cuboid region marked out by selecting the two corners. The region can be maxed out from bedrock to sky. Server administrators can specify the global flags that will be applied to all regions, for example mob spawning and leaf decay OR they can specify region specific flags.
To select a region use a stick and left-click a block for position 1 and right-click a block for position 2.
Commands
/rp create [name] - Create a region from the selected points with the name [name].
/rp delete [name] - Deletes a region named [name].
/rp flag [region-name] [add/remove] [flag] - Add or remove flags for a region [name].
/rp info - Displays information about the region the player is currently in.
/rp max - Maxes the Y coordinates of the selection from the sky to bedrock.
/rp reload - Reloads the config and region files.
/rp set [region-name] [enter/leave] [message] - Sets a region's enter and leave message. Use %player% for the player and any colour codes eg. (&1)
/rp help - Displays this message.
Permissions
rp.edit - Able to create and delete preserved regions.
rp.build - Able to build/destroy blocks in preserved regions.
Region Flags
Essentially, if a region has a flag the particular event is allowed to happen. For example a region with the 'PvP' flag will allow PvP to happen in the region.
Flags in bold are the default region flags.
- use - Regions without this flag stop people opening chests, crafting tables etc.
- build - Regions with this flag allow people to build and destroy blocks.
- burn - Regions without this flag will stop fires.
- fade - Regions without this flag stops blocks from melting/disappearing over time
- grow - Regions without this flag prevents things from growing (vines/trees) and spreading (grass)
- leafdecay - Leaves will decay is a region has this flag.
- explode - Blocks will be destroyed in ANY explosion if a region has this flag.
- bucket - Regions without this flag blocks the use of buckets (placing and picking up liquids).
- monsterspawning - Monsters will spawn if a region has this flag (ONLY monsters).
- animalspawning - Animals will spawn if a region has this flag (ONLY animals).
- commands - Commands can be used if a region has this flag.
- mobdespawn - Mobs will never die/despawn if a region has this flag.
- pvp - Regions with this flag allow PvP in regions, without this flag PvP is blocked.
- enderpearl - Regions without this flag block the use of enderpearls.
Installation
Simply but the RegionPreserve.jar in the plugins folder and restart/reload the server. A config.yml and regions.yml will be generated. Do not edit the regions.yml file, only edit the config.yml file. Type /rp reload to reload the config after any changes.
Future Features
- More region flags
- MySQL support
Change Log
Version 1.4.2:
- Updated to latest Bukkit Dev Build
- Minor performance improvements
Version 1.4.1:
- Fixed the deletion of regions
- Players can no longer use bows in PvP protected regions
- Other minor bug fixes (no more errors in console)
- Compiled against Java 6
Version 1.4.0:
- RegionPreserve will automatically update to the latest version on BukkitDev. This can be disabled in the config.yml file.
- Regions are now stored in YML format for faster load speeds and less chance of data becoming corrupt.
- Added the 'enderpearl' flag to stop people using enderpearls in protected regions.
- Removed the default flags option from the config, all regions must have their flags set individually from now on.
- Players with permission could not ignite blocks in protected areas, they can now.
- Added the dropper to the user flag.
- Added the region enter and leave messages with colours (eg. &b) and player names (%player%)
Source Code:
Freelance Work:
评论 0
登录后参与评分
还没有评论,来抢沙发吧