Languages
Supported Languages
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: enLanguage 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: "e9dfdℹ Press {key} to boost yourself"
boost_activated: "e9dfdℹ 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
- Navigate to - plugins/CraftAttackSpawnElytra/lang/
- Open the language file you want to modify 
- Edit the messages 
- Save the file 
- Use - /spawnelytra reloadto 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:
{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: trueMessage Priority
- Custom messages (if enabled) 
- Language file messages 
- Hardcoded defaults 
Creating Custom Translations
Adding a New Language
- Create a new file in - lang/directory (e.g.,- lang/it.ymlfor Italian)
- Copy structure from - en.yml
- Translate all messages 
- Update - config.ymlto use new language code
- If you want you can give me your custom language via a github choose the label "enhancement" there 
Troubleshooting
Messages Not Changing
- Check - use_custom_messagessetting
- Verify language code in config 
- Ensure file exists in - lang/directory
- Use - /spawnelytra reloadafter 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:
- The plugin falls back to English 
- Check console for warnings 
- 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
- Fork the project on GitHub 
- Create language file in - lang/directory
- Translate all messages 
- Test in-game 
- Submit pull request 
See Also
- Configuration - Message configuration options 
- Commands - Reload command usage 
Last updated
