为什么这个插件对数据包开发者非常有用 ⚙️
Minecraft 的数据包功能十分强大,但存在一个重大限制:
记分板数值是在服务器本地保存的。
这意味着如果你运行的是服务器网络(例如大厅 + 小游戏),数据包无法跨服务器传递玩家进度,因为记分板数值没有共享存储。
使用该插件后,记分板数据将存储在 MySQL 数据库中,这是一个所有服务器均可访问的中心位置。
对于数据包开发者来说,这意味着:
- 基于记分板的系统支持跨服务器兼容
- 集中式进度存储——> 适用于 BungeeCord、Velocity 等
- 不再受限于“仅单服务器”的复杂数据包
- 启用全网络功能,例如全局成就或玩家统计
现在,您可以在多服务器环境中使用您的数据包,而无需担心数据丢失。
命令
所需权限:sd.* 或 op
注册一个记分板目标,使其在玩家离开时保存到数据库,并在玩家加入时加载。
注销一个记分板目标。该数据将不再为玩家更新或加载。
从数据库中删除未注册计分板目标的已保存数据。
显示当前所有已注册的计分板目标列表。
️计划中的功能
这些功能计划在后续更新中推出:
一个简单直观的图形界面,用于管理已注册的计分板和查看玩家数据。
提供多种语言的翻译,以提升国际用户的可访问性。
Why This Plugin is Great for Datapack Developers ⚙️
Minecraft datapacks are very powerful, but they have one big limitation:
** Scoreboard values are saved locally on the server.**
This means if you're running a server network (like a lobby + minigames), datapacks can't carry player progress across servers, because there's no shared storage for scoreboard values.
With this plugin, scoreboard data is stored in a MySQL database, a central location accessible by all servers.
For datapack developers, this means:
- Cross-server compatibility for scoreboard-based systems
- Centralized progress storage —> works on BungeeCord, Velocity & more
- No more “one-server-only” limitation for complex datapacks
- Enables network-wide features, like global achievements or player stats
Now you can finally use your datapack in multi-server environments without losing data.
Commands
Permission required: sd.* or op
Registers a scoreboard objective to be saved in the database when a player leaves, and loaded when they join.
- /sd unregister <objective>
Unregisters a scoreboard objective. The data will no longer be updated or loaded for players.
Deletes all saved data for an unregistered scoreboard objective from the database.
Displays a list of all currently registered scoreboard objectives.
️Planned Features
These features are planned for future updates:
A simple and intuitivegui to manage registered scoreboards and view player data.
Translations for multiple languages to improve accessibility for international users.
评论 0
登录后参与评分
还没有评论,来抢沙发吧