ItemCommands
ItemCommands 是一个简单、轻量级的 Paper 插件,允许你创建自定义命令,这些命令可以给玩家发放已保存的物品。
我最初是为了自己的 Minecraft 服务器制作这个插件的,目的是可以给新玩家发送包含规则、模组信息以及有用的服务器详情等内容的书籍。我希望有一种方法能让玩家在丢失这些书籍后重新获取它们,因此我创建了相应的命令。后来,我决定将其公开,并让它支持任何物品。
✦ 工作原理
在主手持有要给予玩家的物品,然后使用:
/itemcommand set <命令>
示例:
/itemcommand set rules
玩家随后可以使用:
/rules
来获取已保存的物品。
物品会被保存,并在服务器重启后仍然可用。
✦ 移除命令
你可以使用以下命令移除已保存的物品命令:
/itemcommand remove <命令>
示例:
/itemcommand remove rules
这将移除 /rules 物品命令。
✦ 你可以使用什么?
ItemCommands 支持任何 Minecraft 物品,而不仅仅是书本。
你可以用它来执行以下操作:
/rules → 规则书
/mods → 模组信息
/welcome → 欢迎书
/guide → 玩家指南
/starter → 初始物品
物品将保留其自定义名称、描述文本、附魔及其他物品数据。
✦ 服务器重启
新创建的命令会立即生效,但由于尚未注册为常规命令,它们可能在聊天栏中显示为红色。
在创建或删除命令后,请重启服务器以更新命令注册状态,使其正常显示。
✦ 背包处理
如果玩家的背包已满,物品将被丢弃在其所在位置,而不是被删除。
✦ 权限
管理命令需要以下权限:
itemcommands.admin
玩家无需此权限即可使用已创建的物品命令。
✦ 命令
/itemcommand set <command> — 使用主手物品创建一个物品命令。
/itemcommand remove <command> — 移除一个已保存的物品命令。
✦ 简洁轻量
ItemCommands 刻意保持简单。没有复杂的系统或不必要的功能——它只是提供一种简便的方式,让你能够创建向玩家发放物品的命令。
♡ 最初为我自己的服务器开发,现在供所有觉得有用的用户自由使用。
ItemCommands
ItemCommands is a simple, lightweight Paper plugin that lets you create custom commands that give players a saved item.
I originally made this for my own Minecraft server so I could give new players books with things like rules, mod information, and helpful server details. I wanted a way for players to get those books back if they lost them, so I made a command for it. Eventually, I decided to make it public and allow it to work with any item.
✦ How It Works
Hold the item you want to give players in your main hand and use:
/itemcommand set <command>
Example:
/itemcommand set rules
Players can then use:
/rules
to receive the saved item.
Items are saved and remain available after server restarts.
✦ Remove Commands
You can remove a saved item command with:
/itemcommand remove <command>
Example:
/itemcommand remove rules
This removes the /rules item command.
✦ What Can You Use?
ItemCommands works with any Minecraft item, not just books.
You can use it for things like:
/rules → Rules book
/mods → Mod information
/welcome → Welcome book
/guide → Player guide
/starter → Starter items
Items keep their custom names, lore, enchantments, and other item data.
✦ Server Restart
Newly created commands will work immediately, but they may appear red in chat because they haven't been registered as normal commands yet.
Restart the server after creating or removing a command to update the command registration and make it appear normally.
✦ Inventory Handling
If a player's inventory is full, the item will be dropped at their location instead of being deleted.
✦ Permissions
The management commands require:
itemcommands.admin
Players do not need this permission to use the created item commands.
✦ Commands
/itemcommand set <command> — Creates an item command using the item in your main hand.
/itemcommand remove <command> — Removes a saved item command.
✦ Simple & Lightweight
ItemCommands is intentionally kept simple. No complicated systems or unnecessary features—just an easy way to create commands that give players items.
♡ Made for my own server, now available for anyone who finds it useful.
评论 0
登录后参与评分
还没有评论,来抢沙发吧