Skip to content

lang.yml

Valor edited this page Nov 8, 2025 · 4 revisions

RareSpawns Messages

Overview

  • 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 and placeholders

  • 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%.

Editing tips

  • 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.

Examples

  • 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.'

Troubleshooting

  • 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":
    • This means that this message isn't being parsed correctly, and should be mentioned in alt or on Discord: Discord .
  • Custom key ignored:
    • The plugin may expect specific keys; check source or docs to confirm supported keys.

🐲 RareSpawns Wiki

✅ Getting Started

⚙️ Configuration

🍳 Resources

🔌⚡ Supported Plugins (And why 🤔💭)

👑 Premium Features

</> For Developers


🔎 Tips

  • Use the search box above to quickly jump to a page.

Clone this wiki locally