PrisonTeam / Prison

The home of the Prison project, a Minecraft plugin to provide mining and ranking gameplay experience.
https://www.spigotmc.org/resources/prison.1223/
Other
131 stars 48 forks source link

Update reload command to include translation files #247

Closed Josh65-2201 closed 1 year ago

Josh65-2201 commented 1 year ago

Which module are you submitting this issue for?

Core

Describe the issue you are experiencing.

Doing /prison reload doesn't work for translation files. Requiring a server restart

Anything else we need to know?

rbluer commented 1 year ago

Your using the wrong command. It's '/prison reload locale' I'll close this when I get home. You can always just use discord to ask simple questions since you already have a few threads open (any thread is fine).

On Thu, Dec 22, 2022, 12:13 PM Josh-65 @.***> wrote:

Which module are you submitting this issue for?

Core Describe the issue you are experiencing.

Doing /prison reload doesn't work for translation files. Requiring a server restart Anything else we need to know?

— Reply to this email directly, view it on GitHub https://github.com/PrisonTeam/Prison/issues/247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFCS6USUVFU24AP5PF4JO3WOSD2JANCNFSM6AAAAAATG6CLDM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Josh65-2201 commented 1 year ago

Didn't seem like it existed that why I put it here.

rbluer commented 1 year ago

The term "Locale" is based upon the jargon that Java uses when a language is selected for use, and it influences many internal behaviors in java, such as formatting numerics, and altering the multi-language translations used for errors and other general notifications. Prison utilizes the specified locale to control the internal multi-language engine. So hence is why we use that as a descriptor for the command to reload it.

I stated the incorrect command before. The correct command is plural: /prison reload locale

That command does not have aliases setup for it, but if you wish, you can define your own alias within the config.yml setting file under prisonCommandHandleraliases.prison.reload.locale would be the correct yaml path to use.

Prison has a lot of features, many may not be even documented, so feel free to ask on our discord server if you're not finding something that you need.

Thanks for closing this ticket. I'm marking it as invalid since it really isn't an issue and the feature already exist. But thanks for reaching out. ;)