? AutoTreeChopToggleItem
AutoTreeChopToggleItem 是一款轻量级的 Paper/Spigot 插件,旨在简化玩家进行自动伐木切换的操作。它会在玩家快捷栏的最后一个格子中放置一把被锁定且不可破坏的下界合金斧,作为 AutoTreeChop 插件的交互切换开关。
考虑到跨平台服务器的需求,它为 Java 版和基岩版(Geyser/Floodgate)玩家提供了无缝支持!
✨ 功能特性
- ? 锁定的快捷栏槽位: 切换斧会自动位于第 9 个快捷栏槽位(槽位索引 8)。
- ?️ 背包保护:
- 无法丢弃、在背包中移动、拖拽或用于合成。
- 禁用方块破坏以防止意外使用。
- 死亡时保留物品,确保玩家永远不会丢失它。
- ? 基岩版 / Floodgate 兼容:
- 可选限制该物品仅由通过 Geyser/Floodgate 连接的基岩版玩家接收和使用。
- 内置 300ms 冷却时间,以抑制基岩版客户端数据包常见的双击错误。
- ⚠️ 智能快捷栏管理: 如果玩家的第 9 个槽位已被占用,插件会温和地提示他们腾出空间后再发放这把斧头。
- ? 状态持久化: 玩家的切换状态会即时保存到
data.yml 中,并在服务器重启后保持有效。
?️ 命令与权限
命令
/atcaxe give [player] – 将切换斧给予指定玩家。
/atcaxe remove [player] – 从指定玩家处移除切换斧。
/atcaxe toggle [player] – 切换指定玩家是否拥有该斧头。
/atcaxe reload – 重新加载 config.yml 和 data.yml。
权限
atcaxe.admin – 允许访问 /atcaxe 命令(默认:OP)。
⚙️ 配置 (config.yml)
# 如果为 true,则只有通过 Floodgate/Geyser 连接的玩家才能接收并使用该物品。
# 如果为 false(默认值),则该物品会发放给所有玩家并可供其使用。
floodgate-only: false
? AutoTreeChopToggleItem
AutoTreeChopToggleItem is a lightweight Paper/Spigot plugin designed to streamline tree-chopping toggles for your players. It places a locked, unbreakable Netherite Axe into the last slot of a player's hotbar, serving as an interactive toggle switch for the AutoTreeChop plugin.
Designed with cross-platform servers in mind, it provides seamless support for both Java and Bedrock (Geyser/Floodgate) players!
✨ Features
- ? Locked Hotbar Slot: The toggle axe automatically resides in the 9th hotbar slot (slot index 8).
- ?️ Inventory Protection:
- Cannot be dropped, moved in the inventory, dragged, or used in crafting.
- Disabled block breaking to prevent accidental usage.
- Kept on death so players never lose it.
- ? Bedrock / Floodgate Ready:
- Option to restrict the item exclusively to Bedrock players connected via Geyser/Floodgate.
- Built-in 300ms cooldown to suppress double-click bugs common with Bedrock client packets.
- ⚠️ Smart Hotbar Management: If a player's 9th slot is already occupied, the plugin will gently prompt them to free up the space before handing out the axe.
- ? State Persistence: Player toggle states are saved instantly to
data.yml across server restarts.
?️ Commands & Permissions
Commands
/atcaxe give [player] – Gives the toggle axe to a player.
/atcaxe remove [player] – Removes the toggle axe from a player.
/atcaxe toggle [player] – Toggles the axe presence for a player.
/atcaxe reload – Reloads config.yml and data.yml.
Permissions
atcaxe.admin – Allows access to the /atcaxe command (Default: OP).
⚙️ Configuration (config.yml)
# If true, only players connected via Floodgate/Geyser receive and can use the item.
# If false (default), the item is given and usable by all players.
floodgate-only: false
评论 0
登录后参与评分
还没有评论,来抢沙发吧