Invis Items
需要 PacketEvents
支持 1.21.6+ spigot、paper 以及(大多数)paper 分支版本
一个适用于 1.21.6+ spigot 和 paper 的简单插件,使物品对持有者以外的所有玩家不可见。
适用于大厅物品、小游戏、恶作剧,或任何你需要隐藏物品的场景。
功能
- 通过数据包级别的拦截安全地将物品对其他玩家隐藏——客户端不可能知道那些从未告知他们的物品。
- 支持为物品应用和移除隐身效果,以及给予隐形物品并用隐形物品替换插槽。
- 权限控制可细化到每个子命令节点,且
config.yml 中的自定义消息可配置。
- 在 papermc(及 papermc 分支)上支持 Brigadier(Minecraft 的原生命令系统),提供命令着色、
/execute as 支持、参数提示以及其他 Brigadier 的优势。
- 命令中支持如
@p、@r 等选择器,并提供完整的 Tab 补全功能。
- 应支持 Purpur 及大多数其他 paper 分支版本。
命令与权限
| 子命令 |
权限 |
描述 |
| /invisitems version |
invisitems.version |
在聊天栏发送插件版本信息 |
| /invisitems reload |
invisitems.reload |
重新加载 config.yml / 自定义消息 |
| /invisitems apply [<slot>] [<entities>] |
invisitems.apply |
对你或其他实体手中或指定插槽的物品应用隐身效果 |
| /invisitems remove [<slot>] [<entities>] |
invisitems.remove |
对你或其他实体手中或指定插槽的物品移除隐身效果 |
| /invisitems give <item> [<amount>] [<players>] |
invisitems.give |
给予你自己或其他玩家隐形物品 |
| /invisitems replace <slot> <item> [<entities>] |
invisitems.replace |
用隐形物品替换你或其他实体的指定插槽 |
Config.yml
config.yml 包含可自定义的消息。使用 /invisitems reload 进行重新加载。
messages:
reload: "已重新加载 InvisItems"
version: "正在运行 InvisItems 版本 %version%"
receive-item: "你获得了 %amount%x 个隐形 %item%"
give-player-item: "给了 %player% %amount%x 个隐形 %item%"
apply-to-item: "已将隐身效果应用于 %item%"
apply-to-entities: "已为你或其他实体(共 %amount% 个)的 %slot% 插槽应用隐身效果"
remove-from-item: "已从 %item% 移除隐身效果"
remove-from-entities: "已从你或其他实体(共 %amount% 个)的 %slot% 插槽移除隐身效果"
set-slot-to-item: "将 %slot% 插槽设置为隐形 %item%"
set-entity-slot-to-item: "将你或其他实体(共 %amount% 个)的 %slot% 插槽设置为隐形 %item%"
Invis Items
Requires PacketEvents
Supports 1.21.6+ spigot, paper, and (most) paper forks
A simple 1.21.6+ spigot & paper plugin to make items invisible to all but those holding them.
Useful for lobby items, minigames, trolling, or really any time when you need to keep an item hidden.
Features
- Items are securely hidden from players by using packet level interception – clients can't possibly know about items they were never told of.
- Supports applying and removing invisibility to and from items, as well as giving invisible items and replacing slots with invisible items.
- Permissions down to each subcommand node and customisable messages in config.yml.
- Brigadier (minecraft's native command system) support on papermc (and papermc forks) for command colouration, /execute as support, argument tooltips, and more of brigadier's advantages.
- Supports selectors like @p, @r, etc, in commands and offers full tab complete.
- Should support Purpur and most other forks of paper.
Command and Permissions
| Subcommand |
Permission |
Description |
| /invisitems version |
invisitems.version |
Send the plugin version in chat |
| /invisitems reload |
invisitems.reload |
Reload the config.yml/custom messages |
| /invisitems apply [<slot>] [<entities>] |
invisitems.apply |
Apply invisibility to the item in the hand or specified slot of you or other entities |
| /invisitems remove [<slot>] [<entities>] |
invisitems.remove |
Remove invisibility from the item in the hand or specified slot of you or other entities |
| /invisitems give <item> [<amount>] [<players>] |
invisitems.give |
Give an invisible item or invisible items to yourself or other players |
| /invisitems replace <slot> <item> [<entities>] |
invisitems.replace |
Replace the specified slot with an invisible item, for you or other entities |
Config.yml
The config.yml contains the customisable messages. Use /invisitems reload to reload it.
messages:
reload: "Reloaded InvisItems"
version: "Running InvisItems version %version%"
receive-item: "You have been given %amount%x invisible %item%"
give-player-item: "Gave %amount%x invisible %item% to %player%"
apply-to-item: "Applied invisibility to %item%"
apply-to-entities: "Applied invisibility to slot %slot% for %amount% entity(s)"
remove-from-item: "Removed invisibility from %item%"
remove-from-entities: "Removed invisibility from slot %slot% for %amount% entity(s)"
set-slot-to-item: "Set slot %slot% to invisible %item%"
set-entity-slot-to-item: "Set slot %slot% to invisible %item% for %amount% entity(s)"
评论 0
登录后参与评分
还没有评论,来抢沙发吧