-
Notifications
You must be signed in to change notification settings - Fork 0
lang.yml
Valor edited this page Nov 8, 2025
·
4 revisions
- Purpose: Provide configurable language strings used by RareSpawns.
- Format: YAML mapping of keys to message strings. Uses Minecraft-style color codes with the ampersand (&) prefix (e.g., &c for red).
############################################################
# +------------------------------------------------------+ #
# | Lang | #
# +------------------------------------------------------+ #
############################################################
prefix: '&7[&6RareSpawns&7] '
poweritem-no-exist: '&cSorry, this item no longer exists.'
poweritem-no-permission: '&cYou do not have permission to use this item.'| Key | Type | Default | Description |
|---|---|---|---|
| prefix | string | '&7[&6RareSpawns&7] ' | Global chat prefix prepended to plugin messages. Includes color codes and trailing space if desired. |
| poweritem-no-exist | string | '&cSorry, this item no longer exists.' | Message shown when a player attempts to use a power-item that no longer exists. |
| poweritem-no-permission | string | '&cYou do not have permission to use this item.' | Message shown when a player lacks permission to use a power-item. |
- Color codes: Use & followed by the color/format code (e.g., &a, &b, &l). The plugin will typically translate & to the section sign (§) at runtime.
- Placeholders: The provided file doesn't include placeholders, but you can add them if the plugin supports resolving placeholders (check plugin docs). Example: '&cYou do not have permission to use %item%.' — only effective if the plugin replaces %item%.
- Keep messages concise and test colors on a local server before deploying to production.
- If adding new message keys, ensure the plugin reads them (some keys may be hard-coded).
- Always back up lang.yml before making large edits.
- After editing, reload or restart the server (or use the plugin's reload command) so changes take effect.
- Change the prefix to a minimal style:
- prefix: '&8[&6RS&8] '
- Make the no-permission message more informative:
- poweritem-no-permission: '&cYou need &6rareuses.use &cto use this item.'
- Messages not updating after edit:
- Ensure you saved lang.yml correctly (YAML indentation matters).
- Reload the plugin or restart the server.
- Confirm there aren't multiple lang.yml files (e.g., in a resource pack or config backup).
- Color codes showing as literal "&a":
- Custom key ignored:
- The plugin may expect specific keys; check source or docs to confirm supported keys.