Lang
This file manages all user-facing messages, allowing for full translation and customization.
prefix
: The global prefix that appears before most plugin messages.Message Keys: Every message, from command responses (
usage-give-coins
) to error notifications (not-enough-coins
), is defined by a key. You can change the text for any key to match your server's theme.Auto-Updating: This file will automatically add new message keys when you update the plugin, preserving your existing custom messages without requiring you to regenerate the file.
Example lang.yml
snippet:
# The prefix for most plugin messages.
prefix: "&e[&6MobCoins&e]"
# A generic "no permission" message.
no-permission: "&cYou do not have permission to use this command."
# Message for when a player's balance is checked. Placeholders are filled in automatically.
balance: "&7Your balance is &e{balance} &7MobCoins."
# Message for a successful purchase in the shop.
purchase-success: "&aYou have successfully purchased &e{item} &afor &6{price} &aMobCoins."
# Example of a command usage message.
usage-give-booster: "&cUsage: /mobcoins give booster <player> <multiplier> <type> <time> <amount>"
Last updated