NyaaCat / HamsterEcoHelper

Economy enhancer & helper for hamsters
GNU General Public License v3.0
13 stars 9 forks source link

1.12.2 "Command Executed!" does not apply locale or even in en_US #62

Closed mhtvsSFrpHdE closed 3 years ago

mhtvsSFrpHdE commented 4 years ago

I'm forging my own minecraft server and choose to /heh like the good old days.
The plugin works in most case and after every command send in chat or console,
plugin will report "Command Executed!" back to player or console.

I fount the translate in en_US.yml or zh_CN.yml,

user:
    info:
        command_complete: Command Executed!

Set "zh_CN" in config.yml, the plugin still report
"Command Executed!" instead of "命令已执行!" written in zh_CN.yml.

Modifying en_US.yml and use en_US locale,
the changes in en_US.yml about command_complete will not work.

Using

HamsterEcoHelper-master-v3.136
NyaaCore-v4.1.72-mc1.12
LangUtils-1.9

Described in spigot resource page.
Actually I'm not quite sure about what version should be used in Minecraft 1.12.2,
There is tons of release in CI or github release, are 1.13 or up to 1.15.
1.12.2 version is seems not officially supported but the days I'm still play in Nyaa,
there is Minecraft 1.12.2 and /heh out there.

RecursiveG commented 3 years ago

I think that message is actually provided by NyaaCore (src). Check this and read the Internal Section & Normal Section chapter. Try putting it under internal:

internal:
    info:
        command_complete: "Your message here"
mhtvsSFrpHdE commented 3 years ago

@RecursiveG I got the direction, thank you!