
Gost
Gost is a Minecraft server plug-in that combines cat and mouse, ghost and man, hide-and-seek... In the tense and exciting confrontation, experience the pursuit of life and death between human beings and ghosts.
Список изменений
点击看中文
首先,问题出在Gost插件2.2.1_B版本: (该版本已紧急撤回)
存在底层启动项的编译错误——在删除多语言支持的时候,新的编码导致 LanguageManager 文件在初始化失败时提供回退。即使能运行(2.2.0版本实测),玩家看到的文本提示可能会存在硬编码消息或错误提示。
Gost 2.2.1_Cover version对存在的问题进行针对性修复/优化:
-
大幅扩充默认消息库 (LanguageManager.java) 在 loadDefaultMessages() 方法中添加了 90+ 条默认中文消息 覆盖了游戏所有关键环节:游戏状态、角色转换、道具使用、经济系统、错误提示等 即使语言文件加载失败,玩家也能看到完整的中文提示(今后的版本只支持中文而不再支持英文输出,早在2.2.0已经删除英文文件,但之前的版本都支持自翻译massage_ch_CN.yml文件)
-
智能消息回退机制 (LanguageManager.java) 修改了 getMessage() 方法,不再返回 "§cMissing message: xxx" 根据消息键(key)的前缀返回对应的友好提示:
game. → "§e游戏提示"
role. → "§c角色状态"
item. → "§a道具效果"
error. → "§c操作失败"
更多…
后台会记录找不到的消息键,但玩家看到的是友好的中文提示
- 错误隔离保护
所有消息获取和处理都加入了异常捕获
即使部分功能异常,也不会影响核心游戏流程
玩家始终能看到可理解的中文提示
插件启动保护:如果 LanguageManager 初始化失败,插件仍能正常运行
消息获取保护:任何消息获取失败都会返回友好的替代消息
玩家体验优先:所有玩家可见的提示都是完整的中文句子
原2.2.1_B更新内容:
✅ 修复了凝冰球只对鬼玩家生效的问题(现在对所有玩家生效)
✅ 默认血量已调整为10颗心(20点生命值)
✅ 移除了道具叠加开关相关设计
✅ 更新了配置版本号(v19 → v20)
**First of all, the problem lies in the Gost plugin version 2.2.1_B: (This version has been urgently withdrawn) **
There is a compilation error in the underlying startup items - when removing multilingual support, the new encoding causes the LanguageManager file to provide fallback when initialization fails. Even if it can run (verified in version 2.2.0), the text prompts seen by players may contain hard-coded messages or error prompts.
**Gost 2.2.1_Cover version has carried out targeted fixes/optimizations for existing issues: **
-
Significantly expanded the default message library (LanguageManager.java) Added over 90 default Chinese messages in the loadDefaultMessages() method Covering all key aspects of the game: game status, character transformation, item usage, economic system, error prompts, etc. Even if the language file fails to load, players can still see complete Chinese prompts (future versions will only support Chinese and no longer support English output. The English file was removed as early as 2.2.0, but previous versions supported self-translation of the massage_ch_CN.yml file)
-
Intelligent Message Fallback Mechanism (LanguageManager.java) The getMessage() method has been modified to no longer return "§cMissing message: xxx". Instead, it returns a corresponding friendly prompt based on the prefix of the message key (key).
"§eGame Tip"
"§cRole Status"
Item effect → "§aItem Effect"
"§cOperation failed"
More...
The backend will record the message keys that cannot be found, but players will see friendly Chinese prompts.
- Error Isolation Protection
Exception handling has been added to all message acquisition and processing.
Even if some functions are abnormal, it will not affect the core game process.
Players can always see understandable Chinese prompts.
Plugin startup protection: If the LanguageManager initialization fails, the plugin can still run normally.
Message retrieval protection: Any failure in message retrieval will return a friendly alternative message.
Player experience first: All prompts visible to players are complete Chinese sentences.
**Original 2.2.1_B Update Content: **
Fixed the issue where the Iceball only affected ghost players (now affects all players)
The default health points have been adjusted to 10 hearts (20 hit points).
✅ Removed the design related to the item stacking switch
✅ Updated the configuration version number (v19 → v20)
