NoBlockCreeperPlugin
NoBlockCreeperPlugin 是一款专为 Bukkit 服务器设计的 Minecraft 插件,它阻止 苦力怕爆炸 破坏方块,同时保留爆炸视觉效果。这对于那些希望保留苦力怕视觉冲击力,又无需担心因爆炸导致世界被破坏或恶意破坏的服务器来说非常完美。
功能特性
-
防止方块破坏:
- 在所有世界中禁用苦力怕爆炸对方块的破坏效果,确保你的世界免受意外损坏。
-
视觉爆炸效果:
- 可选地显示视觉爆炸效果(不破坏方块),让玩家依然能看到爆炸的闪光和动画。
-
可配置的爆炸威力:
- 调整视觉爆炸的威力(效果的大小),使其可根据服务器性能或美学偏好进行自定义。
-
可切换的反恶意破坏功能:
- 你可以使用指令或在配置文件 (
config.yml) 中直接在游戏中开启或关闭此行为。
-
支持所有世界:
- 在所有世界中阻止苦力怕爆炸,无需为每个世界单独配置。无需额外设置!
安装方法
- 下载
.jar 文件。
- 将
.jar 文件放入 Paper 服务器的 plugins/ 文件夹中。
- 重启服务器以生成插件的配置文件 (
config.yml)。
配置说明 (config.yml)
NoBlockCreeperPlugin 的行为可以通过位于插件目录中的 config.yml 文件完全自定义。可用的配置选项如下:
# NoBlockCreeper 插件配置
# 配置插件以调整苦力怕爆炸行为。
# 启用或禁用视觉爆炸效果 (true/false)。
visualEffect: true # 设置为 false 以禁用视觉爆炸效果
# 爆炸效果的威力 (范围从 0.0 到 100.0)。
# 数值越高,爆炸效果越大。
explosionPower: 4.0 # 根据你的喜好进行调整(例如,0.0 表示无视觉效果)
# 防止苦力怕爆炸破坏方块 (true/false)。
# 如果设置为 true,苦力怕爆炸将不会损坏或破坏方块。
preventCreeperExplosions: true # 设置为 true 以防止苦力怕破坏方块
选项详解
-
visualEffect: 当设置为 true 时,即使没有方块被破坏,此选项也会在苦力怕爆炸时启用视觉爆炸效果。如果设置为 false,则不会显示任何视觉爆炸。
-
explosionPower: 控制视觉爆炸效果的大小和强度。可以设置 0.0 到 100.0 之间的值来控制视觉效果的大小。
0.0 表示完全没有视觉效果。
- 较高的数值 会增加视觉爆炸的大小,模拟更强烈的爆炸。
-
preventCreeperExplosions: 当设置为 true 时,此选项确保苦力怕爆炸不会破坏或改变世界中的方块。如果设置为 false,苦力怕爆炸将按正常行为运行并损坏方块。
指令
该插件还支持一个用于在游戏中切换苦力怕方块破坏防护功能的指令:
指令: /togglecreepergrief
切换苦力怕对方块的破坏防护。
- 用法:
/togglecreepergrief
- 权限: 默认情况下,此指令可供 管理员 (
op) 使用,但如有需要可通过权限系统进行限制。
指令行为:
- 执行此指令后,将切换 苦力怕爆炸 的行为:
- 如果启用了
preventCreeperExplosions,该指令将禁用此功能(允许苦力怕爆炸破坏方块)。
- 如果禁用了
preventCreeperExplosions,该指令将启用此功能(阻止苦力怕爆炸破坏方块)。
- 配置会立即更新,并且会有消息通知玩家该功能是已 启用 还是已 禁用。
权限
你可以使用权限系统来管理谁可以访问 /togglecreepergrief 指令。
permissions:
# 允许玩家切换苦力怕反恶意破坏功能。
noBlockCreeper.toggle:
description: 授予切换苦力怕方块破坏防护的权限。
default: op # 默认情况下,只有管理员可以切换此设置
noBlockCreeper.toggle: 授予访问 /togglecreepergrief 指令的权限,以切换方块破坏防护功能。
- 默认: 默认情况下,该权限授予给 管理员 (
op)。你可以在服务器的权限管理器中修改权限设置。
使用示例
- 安装插件后,在游戏聊天中输入
/togglecreepergrief。
- 插件将切换苦力怕方块破坏的防护状态:
- 已启用: 苦力怕爆炸不会破坏任何方块。
- 已禁用: 苦力怕爆炸将正常运行并损坏方块。
- 系统将发送一条消息,确认该功能是 启用 还是 禁用。
支持
如果你在使用该插件时遇到任何问题,或者需要进一步的自定义,请随时联系获取支持,或查看插件文档以获取更新和变更说明。
享受无恶意破坏的苦力怕爆炸体验吧,来自 NoBlockCreeperPlugin!
NoBlockCreeperPlugin
NoBlockCreeperPlugin is a Minecraft plugin designed for Bukkit servers that prevents Creeper explosions from damaging blocks, while still allowing the explosion effects to occur. This is perfect for servers that want to maintain the visual impact of Creepers without worrying about griefing or world destruction caused by their explosions.
Features
-
Prevent Block Destruction:
- Disables the destruction of blocks by Creeper explosions in all worlds, ensuring that your world remains safe from unintended damage.
-
Visual Explosion Effect:
- Optionally shows the visual explosion effect (without damaging blocks), so players still see the explosion's flash and animation.
-
Configurable Explosion Power:
- Adjust the power of the visual explosion (the size of the effect), making it customizable based on server performance or aesthetic preferences.
-
Toggleable Grief Prevention:
- You can toggle the behavior on and off in-game using a command or directly from the configuration file (
config.yml).
-
Supports All Worlds:
- Prevents Creeper explosions in all worlds without requiring additional configuration for each world. No extra setup needed!
Installation
- Download the
.jar file.
- Place the
.jar file in the plugins/ folder of your Paper server.
- Restart the server to generate the plugin’s configuration file (
config.yml).
Configuration (config.yml)
The behavior of NoBlockCreeperPlugin can be fully customized using the config.yml file located in your plugin directory. The available configuration options are:
# NoBlockCreeper Plugin Configuration
# Configure the plugin to adjust creeper explosion behavior.
# Enable or disable the visual explosion effect (true/false).
visualEffect: true # Set to false to disable the visual explosion effect
# The power of the explosion effect (from 0.0 to 100.0).
# Higher values make the explosion effect bigger.
explosionPower: 4.0 # Adjust to fit your preference (e.g., 0.0 for no visual effect)
# Prevent creeper explosions from destroying blocks (true/false).
# If set to true, creeper explosions will not damage or destroy blocks.
preventCreeperExplosions: true # Set to true to prevent block destruction by creepers
Options Explained
-
visualEffect: When set to true, this option enables a visual explosion effect when a Creeper explodes, even though no blocks will be destroyed. If set to false, no visual explosion will be shown.
-
explosionPower: Controls the size and intensity of the visual explosion effect. A value between 0.0 and 100.0 can be set to control how large or small the visual effect should be.
0.0 means no visual effect at all.
- Higher values will increase the size of the visual explosion, simulating a more powerful blast.
-
preventCreeperExplosions: When set to true, this option ensures that Creeper explosions will not destroy or alter blocks in the world. If set to false, Creeper explosions will behave as usual and damage blocks.
Commands
The plugin also supports a command to toggle the prevention of Creeper block damage in-game:
Command: /togglecreepergrief
Toggles the prevention of block destruction by Creepers.
- Usage:
/togglecreepergrief
- Permissions: By default, this command is available to operators (
op), but can be restricted using permissions if needed.
Command Behavior:
- When executed, this command toggles the behavior of Creeper explosions:
- If
preventCreeperExplosions is enabled, the command will disable the feature (allowing Creeper explosions to destroy blocks).
- If
preventCreeperExplosions is disabled, the command will enable the feature (preventing Creeper explosions from destroying blocks).
- The configuration is updated immediately, and a message will notify the player whether the feature is now enabled or disabled.
Permissions
You can manage who has access to the /togglecreepergrief command using permissions.
permissions:
# Allows players to toggle Creeper grief prevention.
noBlockCreeper.toggle:
description: Grants access to toggle the prevention of creeper block destruction.
default: op # By default, only operators can toggle this setting
noBlockCreeper.toggle: Grants access to the /togglecreepergrief command to toggle the block destruction prevention.
- Default: The permission is granted to operators (
op) by default. You can modify the permission settings in your server’s permissions manager.
Usage Example
- Once the plugin is installed, type
/togglecreepergrief in the game chat.
- The plugin will toggle the prevention of Creeper block destruction:
- Enabled: Creeper explosions won't destroy any blocks.
- Disabled: Creeper explosions will behave normally and damage blocks.
- A message will confirm whether the feature is enabled or disabled.
Support
If you encounter any issues with the plugin or need further customization, feel free to reach out for support or check the plugin's documentation for updates and changes.
Enjoy your grief-free Creeper explosions with NoBlockCreeperPlugin!
评论 0
登录后参与评分
还没有评论,来抢沙发吧