Languages

Supported Languages

Language
Code
File

English

en

lang/en.yml

German

de

lang/de.yml

Spanish

es

lang/es.yml

French

fr

lang/fr.yml

Hindi

hi

lang/hi.yml

Chinese

zh

lang/zh.yml

Arabic

ar

lang/ar.yml

Setting the Language

In your config.yml:

# Available languages: en, de, es, fr, hi, zh, ar
language: en

Language Files (For custom configuration)

Language files are automatically created in:

plugins/CraftAttackSpawnElytra/lang/

File Structure

Each language file contains these messages:

# Example: English (en.yml)
press_to_boost: "&#5e9dfdℹ Press {key} to boost yourself"
boost_activated: "&#5e9dfdℹ Boost activated!"
new_version_available: "&bA new version of Spawn Elytra is available!"
update_to_version: "&ePlease update to version &a{latestVersion} &7(current: &c{currentVersion}&7)"
download_link: "&bDownload link:"
failed_update_check: "&cFailed to check for updates: {errorMessage}"
creative_mode_elytra_disabled: "&eElytra flight disabled in Creative mode."

Customizing Messages

Using Language Files

  1. Navigate to plugins/CraftAttackSpawnElytra/lang/

  2. Open the language file you want to modify

  3. Edit the messages

  4. Save the file

  5. Use /spawnelytra reload to apply changes

Using Custom Messages

Override language files with custom messages in config.yml:

messages:
  # Enable custom messages
  use_custom_messages: true
  
  # Custom message content
  press_to_boost: '&6Press &6&l{key} &6to boost yourself.'
  boost_activated: '&a&lBoost activated!'

Message Placeholders

Messages support these placeholders:

Placeholder
Description
Example

{key}

Offhand key binding

F

Color Formatting

Legacy Color Codes

press_to_boost: "&6Press &l{key} &6to boost"

Supported codes:

  • &0-9 - Colors

  • &a-f - Colors

  • &l - Bold

  • &n - Underline

  • &o - Italic

  • &k - Magic

  • &r - Reset

Hex Colors are coming soon with Minimessage integration

Message Configuration

Show/Hide Messages

Control which messages appear:

messages:
  show_press_to_boost: true
  show_boost_activated: true

Message Priority

  1. Custom messages (if enabled)

  2. Language file messages

  3. Hardcoded defaults

Creating Custom Translations

Adding a New Language

  1. Create a new file in lang/ directory (e.g., lang/it.yml for Italian)

  2. Copy structure from en.yml

  3. Translate all messages

  4. Update config.yml to use new language code

  5. If you want you can give me your custom language via a github choose the label "enhancement" there

Troubleshooting

Messages Not Changing

  1. Check use_custom_messages setting

  2. Verify language code in config

  3. Ensure file exists in lang/ directory

  4. Use /spawnelytra reload after changes

Encoding Issues

  • Save files as UTF-8

  • Don't use text editors that change encoding

  • Test special characters in-game

Missing Translations

If a message is missing from a language file:

  1. The plugin falls back to English

  2. Check console for warnings

  3. Add missing keys to language file

Contributing Translations

Easy Way

go to my github, create an issue, paste in the language file and choose the label "enhancement" there

Hard Way

  1. Fork the project on GitHub

  2. Create language file in lang/ directory

  3. Translate all messages

  4. Test in-game

  5. Submit pull request

See Also

Last updated