#
Language
Before configuring the language files, make sure to setup your language correctly.
To prevent your changes lost, always put text in single quotes:
TexPath: '<red>Your translated text.</red>'
TexPath: <red>Your translated text.</red>
#
Line Breaks
You can add or remove multiple lines to any message in the lang config.
#
Newline Tag
Before:
Message: 'You dont have permissions to do that!'
After:
Message: 'You dont have permissions<br>to do that!'
#
YAML List
Before:
Message: 'You dont have permissions to do that!'
After:
Message:
- 'You dont have permissions'
- 'to do that!'
#
Message Tags
Similar to regular Tags, language messages has a few it's own ones. They don't have to be closed and should be put before language text.
#
No Prefix
Description: Removes plugin prefix from the message. Only useful for the chat
Format: <noprefix>
Message: '<noprefix><red>You dont have permissions to do that!</red>'
#
Output
Description: Defines message output type. If not set, fallbacks to chat
value.
Format: <output:"type">
where type
is output type.
Available Types:
chat
- Sends message in chat (used by default).action_bar
- Sends message in action bar.titles:x:y:z
- Sends message as titles, wherex
is fade in,y
is stay,z
is fade out ticks.none
- Disables the message.
Message:
- '<output:"titles:20:40:20">'
- '<red>No Permission!</red>'
- '<gray>You dont have permissions to do that.</gray>'
Message: '<output:"action_bar"><red>You dont have permissions to do that!</red>'
#
Sound
Description: Plays sound to a player when message is sent.
Format: <sound:"name">
where name
is sound name.
Message: '<sound:"entity.villager.no"><red>You dont have permissions to do that!</red>'
#
PlaceholderAPI
Description: Applies PlaceholderAPI placeholders.
Format: <papi>
Message: '<papi>Your balance is %vault_eco_balance_formatted%'