NoStunSlam
简短描述
防止在 PvP 中利用斧头击破盾牌后衔接重锤进行“眩晕猛击”连招,支持按世界和服务器分别配置。
详细描述
NoStunSlam 会在玩家使用斧头击破另一名玩家的盾牌后,阻止其立即接上重锤攻击,从而防止 PvP 中常见的滥用型“眩晕猛击”连招。该插件轻量、可配置,适用于兼容 Bukkit 的服务器。
功能:
- 可按世界启用/禁用开关。
- 两种拦截模式:
TICK_WINDOW(拦截 N 刻)和 REQUIRE_LANDING(直到攻击者落地才解除拦截)。
- 为受信任的玩家提供绕过权限。
- 支持运行时命令以切换状态和重载配置。
- 依赖极少——基于 Paper API 1.21.11 编译。
命令
/nostunslaM toggle - 切换当前世界的保护状态。
/nostunslaM toggle <world> - 切换指定世界的保护状态(需从控制台执行或拥有相应权限)。
/nostunslaM status - 显示当前世界的启用/禁用状态。
/nostunslaM reload - 重载配置文件和 worlds 文件。
权限
nostunslaM.admin - 管理功能(切换/状态/重载)。默认:op。
nostunslaM.bypass - 允许玩家绕过眩晕猛击拦截。默认:false。
权威的命令与权限声明请参阅 src/main/resources/plugin.yml。
示例配置
插件首次运行时会生成默认的 config.yml。示例内容如下:
mode: TICK_WINDOW
block-window-ticks: 10
blocked-message: "&c你打破盾牌后不能这么快使用重锤!"
log-blocks: false
示例世界文件
disabled-worlds:
- example_world
管理员须知
- 通过你的权限插件(例如 LuckPerms)赋予管理员
nostunslaM.admin 权限:
lp group moderator permission set nostunslaM.admin true
lp user <username> permission set nostunslaM.bypass true
- 可从控制台使用
/nostunslaM toggle <world> 更改世界级别的设置,无需身处该世界中。
兼容性与安装
- 目标平台:实现 Minecraft 1.21 的 Bukkit API 的 Bukkit 兼容服务器(Paper/Spigot/CraftBukkit)。
- 基于 Paper API
1.21.11-R0.1-SNAPSHOT 构建(参见 build.gradle.kts)。插件在 plugin.yml 中声明了 api-version: '1.21'。
- 它应能在其他 1.21.x 版本的服务器构建上运行,但不保证跨主要 Minecraft 版本(如 1.20 或 1.22)的功能一致性。
安装步骤:
- 从发布页面或 Modrinth 下载插件 JAR 文件。
- 将
NoStunSlam-<version>.jar 放入服务器的 plugins/ 文件夹中。
- 重启服务器。
支持与源码
如果发现任何错误或问题,请在 Discord 上联系 Mexz。
NoStunSlam
Short description
Prevents axe shield-break → mace follow-up "stun-slam" combos in PvP, configurable per-world and per-server.
Long description
NoStunSlam blocks immediate follow-up mace hits after a player breaks another player's shield with an axe, preventing instant "stun-slam" combos that are commonly abused in PvP. It is lightweight, configurable, and intended for Bukkit-compatible servers.
Features:
- Per-world enable/disable toggles.
- Two blocking modes:
TICK_WINDOW (blocks for N ticks) and REQUIRE_LANDING (blocks until attacker lands).
- Bypass permission for trusted players.
- Runtime commands for toggling and reloading config.
- Minimal dependencies - compiled against Paper API 1.21.11.
Commands
/nostunslaM toggle - Toggle protection for your current world.
/nostunslaM toggle <world> - Toggle protection for a specific world (use from console or with permission).
/nostunslaM status - Show enabled/disabled status for your current world.
/nostunslaM reload - Reload config and worlds file.
Permissions
nostunslaM.admin - Management (toggle/status/reload). Default: op.
nostunslaM.bypass - Allows player to bypass stunslam blocking. Default: false.
See src/main/resources/plugin.yml for the authoritative command/permission declarations.
Example config
The plugin generates a default config.yml on first-run. Example contents:
mode: TICK_WINDOW
block-window-ticks: 10
blocked-message: "&cYou cannot mace so quickly after breaking a shield!"
log-blocks: false
Example worlds file
disabled-worlds:
- example_world
Admin notes
- Give moderators the
nostunslaM.admin permission via your permissions plugin (e.g., LuckPerms):
lp group moderator permission set nostunslaM.admin true
- To exempt a user from blocking:
lp user <username> permission set nostunslaM.bypass true
- Use
/nostunslaM toggle <world> from console to change per-world state without being online in that world.
Compatibility & installation
- Target platform: Bukkit-compatible servers (Paper/Spigot/CraftBukkit) implementing the Bukkit API for Minecraft 1.21.
- Built against Paper API
1.21.11-R0.1-SNAPSHOT (see build.gradle.kts). The plugin declares api-version: '1.21' in plugin.yml.
- It should run on other 1.21.x server builds, but functionality is not guaranteed across major Minecraft versions (e.g., 1.20 or 1.22).
Installation:
- Download the plugin JAR from the releases or Modrinth.
- Drop
NoStunSlam-<version>.jar into your server plugins/ folder.
- Restart the server.
Support / Source
If you find bugs or issues, message Mexz on Discord.
评论 0
登录后参与评分
还没有评论,来抢沙发吧