RiftMace
RiftMace 插件 – 快速摘要 主要特性 一种自定义的“裂隙重锤”武器,玩家可手持使用。它内置冷却时间、具有特殊的命中效果,并且可以通过简单的命令给予或切换。
功能说明
RiftMace 插件 – 快速摘要 主要特性 一种自定义的“裂隙重锤”武器,玩家可手持使用。它内置冷却时间、具有特殊的命中效果,并且可以通过简单的命令给予或切换。
命令
| 命令 |
描述 |
用法 |
/riftmace |
插件的主命令。 |
/riftmace give <player> – 将裂隙重锤给予某玩家。
/riftmace reload – 重新加载插件的配置。
/riftmace cooldown <seconds> – 更改全局冷却时间。 |
/riftmace help |
显示简短的帮助页面。 |
/riftmace help |
所有子命令均为可选;仅输入 /riftmace 即可打开帮助菜单。
权限
| 权限 |
作用 |
riftmace.use |
使用裂隙重锤(命中检测与冷却)。 |
riftmace.admin |
访问所有 /riftmace 子命令(give、reload、设置冷却时间)。 |
配置 (config.yml)
cooldown: 5 # 默认冷却时间(秒)
mace-name: "&6Rift Mace"
mace-lore:
- "&7A weapon forged from the void."
- "&7It cracks reality on each hit."
更改冷却时间数值会更新成功命中之间的等待时间。
重要行为
- 冷却管理 –
CooldownManager 追踪每位玩家的最后一次攻击时间,并在配置的冷却时间过去之前阻止造成额外伤害。
- 事件监听 –
RiftMaceListener 监听 EntityDamageByEntityEvent;当玩家使用裂隙重锤击中目标时:
- 检查冷却时间。
- 施加轻微的击退效果并产生视觉粒子爆发。
- 向攻击者发送简短的“裂隙激活!”提示消息。
- 命令处理 –
RiftMaceCommand 处理所有 /riftmace 子命令...
兼容性
- Paper 1.21.4
- Folia 和 Purpur 通过 Paper API 支持
源码
在发布前于 生成并进行实时测试。
由 PluginSmith.net 生成并进行实时测试。AI 辅助插件开发,并在 Paper 1.21 上进行自动化测试。
RiftMace
RiftMace Plugin – Quick Summary Main Feature A custom “Rift Mace” weapon that can be wielded by players. It has a built‑in cooldown, special hit effects, and can be given or toggled via a simple comm
What it does
RiftMace Plugin – Quick Summary Main Feature A custom “Rift Mace” weapon that can be wielded by players. It has a built‑in cooldown, special hit effects, and can be given or toggled via a simple command. Commands Command Description Usage /riftmace Main command for the plugin. /riftmace give <player> – gives the Rift Mace to a player.
/riftmace reload – reloads the plugin’s config.
/riftmace cooldown <seconds> – changes the global cooldown time. /riftmace help Shows a short help page. /riftmace help All sub‑commands are optional; just typing /riftmace opens a help menu. Permissions Permission What it Allows riftmace.use Use the Rift Mace (hit detection & cooldown). riftmace.admin Access all /riftmace sub‑commands (give, reload, set cooldown). Configuration (config.yml) cooldown: 5 # default cooldown in seconds mace-name: "&6Rift Mace" mace-lore: - "&7A weapon forged from the void." - "&7It cracks reality on each hit." Changing the cooldown value updates the wait time between successful hits. Important Behaviors Cooldown Management – CooldownManager tracks each player’s last hit and blocks further damage until the configured time has passed. Event Listener – RiftMaceListener listens for EntityDamageByEntityEvent; when a player hits with the Rift Mace it: Checks the cooldown. Applies a small knock‑back and a visual particle burst. Sends a brief “Rift activated!” message to the attacker. Command Handling – RiftMaceCommand processes all /riftmace sub‑comman
Compatibility
- Paper 1.21.4
- Folia and Purpur supported via Paper API
Source
Generated and live-tested on before publishing.
Generated and live-tested with PluginSmith.net. AI-assisted plugin development with automated testing on Paper 1.21.
评论 0
登录后参与评分
还没有评论,来抢沙发吧