diff --git a/README.md b/README.md index f94893b..914e929 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,24 @@ Better Death Messages on MCBE Loading *ModAPI* enables client-side translation. That allows players to freely switch languages on their own. +## Death Messages Translation + +By default, this plugin uses resource packs for translation to ensure perfect compatibility with various addons.
`This requires ModAPI to be enabled.` +
(The plugin automatically builds the resource pack and sends it to players upon joining. Using resource pack-based translation is recommended.) + +If you prefer not to use resource packs, you can enable server-side translation in the configuration file.
This way, all translations are handled entirely on the server without requiring any client-side resource packs. + +#### For issues, please report them via GitHub Issues!!! +#### Pull Requests are also welcome! + +You can also customize death messages by editing the language files.
+(The resource pack will be generated in the ./plugins/DeathMessages/log directory; feel free to modify it as needed.) +
`This requires ModAPI to be enabled.` + +High performance: Implemented using native functions with no additional data storage, resulting in minimal performance overhead. +Uses native death message broadcasting, preserving the vanilla showdeathmessages game rule behavior. +Currently restores approximately 95% of Java Edition death messages. + # 开源许可 ## 源代码可用性 - 您可以自由地获取、使用和修改本插件的源代码,无论是个人使用还是商业目的。 diff --git a/src/DeathMessage.cpp b/src/DeathMessage.cpp index 9406e60..f16ec67 100644 --- a/src/DeathMessage.cpp +++ b/src/DeathMessage.cpp @@ -38,7 +38,6 @@ std::string getResourcePackKey(std::string const& name, Actor* ac) { std::string res = "%" + type; return res; } - // 构造死亡信息输出 DeathMessageResult makeDeathMessage( int cause,