BackPack 插件
概述
BackPack 插件为玩家提供了专属的个人便携储物空间。你可以像打开箱子一样打开它,即使服务器重启,里面的物品也会被保存下来。每个背包都是独一无二的,并与所有者绑定。为了防止漏洞利用,你不能将背包放入另一个背包中。所有内容都高度可定制。
此外,还提供了用于发放、查看和管理背包的命令,并支持完整的配置文件设置。
功能:
-
背包物品
-
玩家可以通过命令(/backpack give)获取或制作它们。
-
每个背包都与 UUID 和玩家名称绑定。
-
物品的描述显示:所有者名称、背包编号、填充程度(已用槽位 / 总槽位),以及“右键点击打开”。
-
命令
/backpack give <player> [rows] [item]
给某人一个背包。
可选参数:
rows: 背包的大小(如 2x9, 3x9)
item: 背包应该是什么物品(例如 CHEST, SHULKER_BOX)
/backpack seeinside <player> <number>
让你通过背包编号查看其他玩家的背包内容。
/backpack reload 或 /bp reload
重新加载配置文件(物品、配方、语言内容等),无需重启整个服务器。
- 合成
- 拥有默认的合成配方,但你可以在配置文件中完全更改它(形状、材料等)。
- 你可以设置为合成一个真正可用的背包,或者只是一个假物品。
- 库存相关
- 当你打开背包时,除了你当前正在查看的那个背包外,你可以移动所有其他物品。
- 你可以移动其他背包,但不能将它们放入正在打开的背包中。
- 当你放入或取出物品时,物品描述会自动更新。
- 保存 / 持久化
- 所有背包都会保存到 backpacks.yml 文件中(内容、大小、所有者、显示名称)。
- 插件启动时自动加载。
- 配置选项
- 更改背包的物品
- 设置默认和最大行数(大小限制)
- 完整的合成配方配置
- 语言支持(英文 & 德文消息)
- 配置文件包含英文注释,以便你了解各项功能的作用。
- 兼容性
- 适用于 Paper/Spigot 1.21+
- 需要 Java 17 或更高版本
- 由于使用 UUID,可在跨服务器和离线玩家之间正常工作。
- 开发者备注
- 使用 PersistentDataContainer 将物品与库存链接。
- 拥有自定义的 BackpackInventoryHolder,以便插件知道哪个库存属于哪个物品。
- 设计了防止因嵌套背包或丢失物品导致服务器错误的机制。
由 FrediFret 编写。
BackPack Plugin
Overview
The Backpack plugin gives players there own personal portable storage in Minecraft. U can open it just like a chest and it saves ur stuff even when the server restarts. Every backpack is unique and linked to the owner. U cant put a backpack inside another backpack to prevent exploits. Everything is super customizable.
Also has comands to give, view and manage the backpacks and full config support.
Features:
-
Backpack Items
-
Players can get them via comand (/backpack give) or craft them.
-
Every backpack is linked to a UUID and player name.
-
The lore on the item shows: Owner name, Backpack number, How full it is (used slots / total slots), and "Right click to open".
-
Comands
/backpack give <player> [rows] [item]
Gives a backpack to someone.
Optional:
rows: size of it (like 2x9, 3x9)
item: what item the backpack should be (e.g. CHEST, SHULKER_BOX)
/backpack seeinside <player> <number>
Lets u look into the backpack of another player using his backpack number.
/backpack reload or /bp reload
Reloads the config (items, recipes, lang stuff) without restarting the whole server.
- Crafting
- Has a default recipe but u can completely change it in the config (shape, materials etc).
- U can set it to craft a real working backpack or just a dummy item.
- Inventory Stuff
- When u open it, u can move everything except the backpack u are currently looking inside.
- U can move other backpacks around but u cant put them inside the open one.
- The item lore updates automaticly when u put stuff in or take it out.
- Saving / Persistence
- All backpacks get saved to backpacks.yml (Contents, Size, Owner, Display name).
- Loads automaticly when the plugin starts.
- Config Options
- Change the item for the backpack
- Set default and max rows (size limits)
- Full crafting recipe config
- Language support (English & German msgs)
- The config has english comments so u know what everything does.
- Compatibility
- Works with Paper/Spigot 1.21+
- Needs Java 17 or newer
- Works across servers and offline players cause it uses UUIDs.
- Dev Notes
- Uses PersistentDataContainer to link the items to the inventorys.
- Has a custom BackpackInventoryHolder so the plugin knows which inv belongs to which item.
- Made it so it prevents server errors from nesting backpacks or loosing items.
Coded by FrediFret.
评论 0
登录后参与评分
还没有评论,来抢沙发吧