是否曾需要一个简单却强大的方法来防止恶意破坏,并保护特定区域?
该插件允许玩家通过放置方块来保护土地。它会在方块放置位置周围创建一个指定半径(可配置)的 WorldGuard 区域。此插件还允许玩家将人员添加到区域或从中移除,并设置标志(在配置中定义)。
依赖项:
- WorldGuard 7+
- WorldEdit 7+
- Vault(可选)
- PlaceholderAPI(可选)
- Spigot 或 Paper 1.21.10+
安装
请确保已安装上述依赖项。
只需将插件放入 plugins 文件夹,它将自动生成默认配置文件。
默认情况下,不会赋予玩家任何权限,因此你需要显式地添加它们。
添加新的保护方块
要添加新的保护方块,请进入 plugins/ProtectionStones/blocks,复制并粘贴默认的 block1.toml 文件并重命名(例如 block2.toml)。然后,你必须在新的方块配置中更改 “type” 和 “alias” 字段,因为不允许存在重复项。
配置标志
标志允许自定义区域行为。ProtectionStones 使用 WorldGuard 标志,这意味着实际上是由 WorldGuard 进行保护,而非 ProtectionStones。你可以在此处查看 WorldGuard 标志列表。
你也可以使用其他向 WorldGuard 添加标志的插件(例如 WorldGuard Extra Flags),并在 ProtectionStones 中使用它们。
其他建议
WorldGuard 默认会阻止漏斗跨区域移动,并阻止漏斗矿车工作。我建议将 WorldGuard 配置文件中的 ignore-hopper-item-move-events 设置为 true 以解决此问题。
如果你想防止水和熔岩流入区域,可以在 WorldGuard 的配置中将 high-frequency-flags 和 protect-against-liquid-flow 设置为 true。
查看 WorldGuard 配置文件 此处。
默认配置文件
查看默认配置文件 此处。
翻译
查看用户贡献的翻译 此处。
如果你希望为页面贡献翻译,请联系我的 Discord,或在 GitHub 上提交 Issue!谢谢!
用法
使用 /ps get 命令获取保护方块。只需将其放置即可创建以该方块为中心的保护区域。破坏该方块将移除区域。
权限
查看权限列表 此处。
命令
查看命令列表 此处。
占位符
ProtectionStones 支持 PlaceholderAPI!查看它们 此处。
常见问题
查看常见问题解答 此处。
Ever needed an easy, yet powerful way to prevent grief, and protect a certain area?
This plugin allows players to protect land using a block that they place down. It creates a WorldGuard region at a set radius (configurable) around where the block is placed. The plugin also allows players to add and remove people to the region, as well as set flags (defined in the config).
Requirements:
- WorldGuard 7+
- WorldEdit 7+
- Vault (Optional)
- PlaceholderAPI (Optional)
- Spigot or Paper 1.21.10+
Installation
Make sure you first have the requirements listed above.
Simply add the plugin to the plugins folder, and it will generate the default configuration.
By default, no permissions are given to players, so you have to add them explicitly.
Adding new blocks
To add new protection blocks, go into plugins/ProtectionStones/blocks, and copy and paste the default block1.toml file and rename it (ex. block2.toml). Then, you have to change the "type" and "alias" fields in the new block config, since there cannot be duplicates.
Configuring flags
Flags allow for customization of region behaviour. ProtectionStones uses WorldGuard flags, meaning that WorldGuard is actually doing the protecting, not ProtectionStones. You can view the list of WorldGuard flags here.
It is also possible to use other plugins that add flags to WorldGuard, such as WorldGuard Extra Flags and use them in ProtectionStones.
Other Recommendations
WorldGuard by default prevents hoppers from going between regions, and prevents hopper minecarts from working. I recommend setting ignore-hopper-item-move-events in WorldGuard's config to true to fix this.
If you want to protect against water and lava flow into regions, you can set high-frequency-flags and protect-against-liquid-flow to true in WorldGuard's config.
View the WorldGuard config here.
Default Config Files
View the default configuration here.
Translations
View user contributed translations here.
Contact me on the Discord, or file a GitHub issue if you would like to contribute your translation to the page! Thank you!
Usage
Get a protection block with the /ps get command. Simply placing it down will create a protection region centered around the block. Breaking the block will remove the region.
Permissions
View the permission list here.
Commands
View the list of commands here.
Placeholders
ProtectionStones has support for PlaceholderAPI! View them here.
FAQ
View the FAQ here.
评论 0
登录后参与评分
还没有评论,来抢沙发吧