Customize translation messages¶
Use this guide to edit existing translation messages or add new language translations.
Preconditions¶
- A Minecraft server with ClockTime installed.
- Access to the server's filesystem under
plugins/ClockTime/languages/.
MiniMessage Formatting
ClockTime supports Adventure MiniMessage formatting. You can customize translations with named colors (e.g. <red>), hex values (<#ff5555>), decorations (<bold>), or gradients.
Editing Existing Translations¶
- Go to
plugins/ClockTime/languages/inside your server's plugins directory. - Open the file matching your desired language (e.g.,
messages.propertiesfor English ormessages_es.propertiesfor Spanish). -
Modify the translation messages. You can use standard MiniMessage formatting:
-
Save the file.
- Restart your server.
Adding a Custom Language¶
To add support for a custom language not bundled by default (e.g., Swedish):
- Find the language code: Locate the Minecraft language code for the target language. You can find this in Minecraft under Options > Language (e.g. Swedish
sv_sewhich maps tosv/sv_SE), or refer to the Minecraft Wiki Language list. - Create the file: In
plugins/ClockTime/languages/, create a new properties file using the formatmessages_<code_or_suffix>.properties(e.g.messages_sv.properties). -
Add translation keys: Insert both required keys into the file:
-
Save the file.
- Restart the server.
Verification¶
To verify that your custom or edited translation is active:
- Log into the server.
- Change your Minecraft client language to match the edited or added locale (e.g., Swedish).
- Right-click a clock in your main hand.
- Verify that the time message displayed in chat matches your custom text and formatting.