这是一个插件,允许你为玩家创建套件。
该插件的诞生是因为缺乏针对此功能的优化解决方案。
它占用极少的内存,并且高度可定制。
与其他加载服务器上每个已注册玩家数据(浪费宝贵资源)的插件不同,XPlayerKits 采用了更聪明的方法。
它仅在玩家实际加入时才加载玩家数据,并仅缓存必要信息。这意味着在性能不受影响的情况下,显著降低内存使用。
此外,XPlayerKits 开箱即用内置 SQLite 支持,为您提供可靠且轻量的数据库解决方案。无需再处理将玩家数据存储在不规范的 YML 文件中的限制和问题。
功能
- 迁移: 从其他插件迁移数据和套件,以节省资源并避免库存漏洞。
- 套件占位符要求: 使用系统检查占位符条件。
- 完全可编辑的库存: 通过图标名称系统自定义套件库存。
- 领取/拒绝操作: 设置领取或拒绝套件时的操作,例如命令或音效。
- 游戏内 GUI: 在游戏内直接编辑套件,包括属性、图标和内容。
- 一次性套件: 创建只能领取一次的套件,存储在玩家数据中。
- 首次加入套件: 在玩家首次加入服务器时向其发放套件。
- 数据库支持: 支持 MongoDB、MySQL 和 SQLite(推荐:MongoDB)。
命令
/xkits editor- 打开编辑器以快速创建套件。/xkits kits- 打开套件选择菜单。/xkits open [rotation/category]- 打开带有分类或轮换套件的套件选择。/xkits preview <kitName> [player]- 打开预览菜单。/xkits give <kitName> <player>- 绕过检查直接将套件给予玩家。/xkits claim <kitName> <player>- 经过检查后将套件给予玩家。/xkits reset <kitName> <player>- 重置玩家在特定套件中的数据。/xkits resetall <player>- 重置玩家的所有数据。/xkits delete <kitName>- 删除一个套件。/xkits migrate playerkits2_yml/playerkits2_mysql- 从其他插件迁移数据。/xkits migratekits playerkits2- 从其他插件迁移套件。
权限
xkits.admin- 允许玩家使用/xkits editor和/xkits slots命令。xkits.preview- 允许玩家使用/xkits preview。xkits.countdown.bypass- 允许玩家绕过套件倒计时。xkits.onetime.bypass- 允许玩家绕过一次性限制。
占位符
%xplayerkits_cooldown_<kitId>%- 显示距离下次领取的时间。%xplayerkits_claimed_onetime_<kitId>%- 如果玩家的套件已被领取则返回 yes,否则返回 no。%xplayerkits_claimed_cooldown_<kitId>%- 如果玩家的套件处于冷却中则返回 yes,否则返回 no。
操作
| 操作 | 描述 | 示例 |
|---|---|---|
| console | 从控制台执行命令。 | console:say test |
| command | 以玩家身份执行命令。 | command:dm open main |
| sound | 向玩家播放音效。 | sound:ENTITY_ENDERMAN_TELEPORT;1.0f;1.0f |
| playsound_resource_pack | 从资源包播放音效。 | playsound_resource_pack:ENTITY_ENDERMAN_TELEPORT;1.0f;1.0f |
| message | 向玩家发送聊天消息。 | message:You can’t claim this kit. |
| center_message | 向玩家发送居中的消息。 | center_message:You can’t claim this kit. |
| mini_message | 发送 MiniMessage 格式的消息。 | mini_message:<red>You can’t claim this kit.</red> |
| broadcast | 向所有玩家发送消息。 | broadcast:You can’t claim this kit. |
| titles | 向玩家发送标题和副标题。 | titles:<title>Kit Claimed!;<subtitle>Enjoy your rewards! |
| wait_ticks | 在执行下一个操作之前等待。 | wait_ticks:40 |
It's a plugin that allows you to create kits for your players.
This plugin was created due to the lack of an optimized solution for this feature.
It uses very little RAM and is highly customizable.
Unlike other plugins that load the data of every single player registered on your server (wasting precious resources), XPlayerKits takes a smarter approach.
It only loads player data when they actually join, and keeps just the essential information cached. This means significantly lower RAM usage without sacrificing performance.
On top of that, XPlayerKits comes with built-in SQLite support right out of the box, giving you a reliable and lightweight database solution. No more dealing with the limitations and issues of storing player data in messy YML files.
Features
- Migration: Migrate data and kits from another plugin to save resources and avoid inventory exploits.
- Kit placeholder requirements: Use a system to check placeholder conditions.
- Fully editable inventory: Customize the kit inventory with an item name system for icons.
- Claim/Deny actions: Set actions when claiming or denying a kit, such as commands or sounds.
- In-game GUI: Edit kits directly in-game, including properties, icons, and content.
- One-Time Kits: Create kits that can only be claimed once, stored in player data.
- First Join Kit: Deliver a kit to players the first time they join your server.
- Database support: MongoDB, MySQL, and SQLite are supported (Recommended: MongoDB).
Commands
/xkits editor- Opens the editor for quick kit creation./xkits kits- Opens the kit selection menu./xkits open [rotation/category]- Opens the kit selection with category or rotation kits./xkits preview <kitName> [player]- Opens preview menu./xkits give <kitName> <player>- Give kits directly to players without checks./xkits claim <kitName> <player>- Give kits to players with checks./xkits reset <kitName> <player>- Reset a player's data for a specific kit./xkits resetall <player>- Reset all data for a player./xkits delete <kitName>- Delete a kit./xkits migrate playerkits2_yml/playerkits2_mysql- Migrate data from other plugins./xkits migratekits playerkits2- Migrate kits from other plugins.
Permissions
xkits.admin- Allows players to use the/xkits editorand/xkits slotscommands.xkits.preview- Allows players to use/xkits preview.xkits.countdown.bypass- Allows players to bypass kit countdowns.xkits.onetime.bypass- Allows players to bypass one-time restrictions.
Placeholders
%xplayerkits_cooldown_<kitId>%- Show the time to next claim.%xplayerkits_claimed_onetime_<kitId>%- Return yes or no if the kit of player is claimed.%xplayerkits_claimed_cooldown_<kitId>%- Return yes or no if the kit of player is in cooldown.
Actions
| Action | Description | Example |
|---|---|---|
| console | Executes a command from the console. | console:say test |
| command | Executes a command as the player. | command:dm open main |
| sound | Plays a sound to the player. | sound:ENTITY_ENDERMAN_TELEPORT;1.0f;1.0f |
| playsound_resource_pack | Plays a sound from a resource pack. | playsound_resource_pack:ENTITY_ENDERMAN_TELEPORT;1.0f;1.0f |
| message | Sends a chat message to the player. | message:You can’t claim this kit. |
| center_message | Sends a centered message to the player. | center_message:You can’t claim this kit. |
| mini_message | Sends a MiniMessage formatted message. | mini_message:<red>You can’t claim this kit.</red> |
| broadcast | Sends a message to all players. | broadcast:You can’t claim this kit. |
| titles | Sends a title and subtitle to the player. | titles:<title>Kit Claimed!;<subtitle>Enjoy your rewards! |
| wait_ticks | Waits before executing the next action. | wait_ticks:40 |
下载 XPlayerKits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 XPlayerKits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 XPlayerKits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 XPlayerKits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 XPlayerKits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 XPlayerKits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 XPlayerKits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 XPlayerKits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 XPlayerKits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 XPlayerKits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
已修复
- 修复了与 Minecraft 1.21.11 的兼容性问题。
- 修复了与 Purpur 的兼容性问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧