BetterTeams icon indicating copy to clipboard operation
BetterTeams copied to clipboard

About The Message System of BetterTeams plugin [BUG]

Open IamsadVN opened this issue 7 months ago • 3 comments

What is the bug?

I have noticed some issues related to the Message system. It seems that when I just installed the Plugin on my server, the message.yml file wasn't created properly. I'm not sure if that's the right way to say it, but the file should have loaded all the messages from GitHub or something. However, it didn't load completely and some messages were missing. These missing messages caused the server console to continuously display missing message notifications. And I noticed that the missing messages are usually in the help section. It's only when a user uses the /team help command that the missing messages load and appear in message.yml.

Expected Behaviour

I hope BetterTeams should check again the message code

How to Reproduce

And I am also the translator for this Plugin, which is how I discovered the issue. In fact, when I translated this plugin, I copied the message.yml file and then edited the content of each message. After finishing the translation, I tried using my translated file. But it reported missing messages in the server console, so I tried deleting the message.yml file and then let the plugin automatically download the message file again. However, now the console says that the message.yml file is missing some messages. I found it very confusing. Then, I tried using the team help and teama help commands to check if the plugin was missing those messages and if it would report errors. After using those commands, I went back to VS Code to check the file and saw that there were new messages at the bottom of the file (specifically at the end of the help section).

Error message

[17:53:10 INFO]: [BetterTeams] Enabling BetterTeams v4.9.4 [17:53:10 INFO]: [BetterTeams] Checking if the file vi.yml is up to date [17:53:10 INFO]: [BetterTeams] ================================================================== [17:53:10 INFO]: [BetterTeams] File is not updated, adding values under the following references: [17:53:10 INFO]: [BetterTeams] - help.warps [17:53:10 INFO]: [BetterTeams] - help.rankup [17:53:10 INFO]: [BetterTeams] - help.tag [17:53:10 INFO]: [BetterTeams] - help.delwarp [17:53:10 INFO]: [BetterTeams] - help.chest [17:53:10 INFO]: [BetterTeams] - help.pvp [17:53:10 INFO]: [BetterTeams] - help.baltop [17:53:10 INFO]: [BetterTeams] - help.list [17:53:10 INFO]: [BetterTeams] - help.warp [17:53:10 INFO]: [BetterTeams] - help.removeall [17:53:10 INFO]: [BetterTeams] - help.claim [17:53:10 INFO]: [BetterTeams] - help.remove [17:53:10 INFO]: [BetterTeams] vi.yml is now updated to the latest version, thank you for using BetterTeams [17:53:10 INFO]: [BetterTeams] ================================================================== [17:53:10 INFO]: [BetterTeams] Checking if the file messages.yml is up to date [17:53:10 INFO]: [BetterTeams] File is up to date

image

Output of /teama version

image

Additional Information

No response

IamsadVN avatar Jul 10 '24 16:07 IamsadVN