Translations
An example Translation for german can be found in the Configuration Cookbook.
Messages
Message | supports special Message per Job | supports Job parameters | supports Player parameters | supports Ability parameters | other parameters | notice |
---|---|---|---|---|---|---|
COMMAND_ADDXP_RECEIVE_OTHER | no | yes | yes | no | xp, source | |
COMMAND_ADDXP_SELF | no | yes | yes | no | xp, source | source and player.name are the same |
COMMAND_ADDXP_SEND_OTHER | no | yes | yes | no | xp, source | player refers to the receiving player |
COMMAND_CHANGE_ALREADY_JOINED | no | yes | no | no | ||
COMMAND_CHANGE_JOINED | no | yes | no | no | ||
COMMAND_CHANGE_LEAVED | no | yes | no | no | ||
COMMAND_CHANGE_MISSING_JOB_PERMISSION | no | yes | no | no | ||
COMMAND_CHANGE_NOT_SELECTED | no | yes | no | no | ||
COMMAND_CHANGE_TOO_MANY_SELECTED | no | yes | no | no | maxjobs | |
COMMAND_INFO_FOOTER | no | no | no | no | ||
COMMAND_INFO_HEADER | no | no | no | no | ||
COMMAND_INFO_LINE | no | yes | no | no | ||
COMMAND_INFO_SINGLE | no | yes | no | no | ||
COMMAND_RELOAD_ERROR | no | no | no | no | ||
COMMAND_RELOAD_START | no | no | no | no | ||
COMMAND_RELOAD_SUCCESS | no | no | no | no | ||
COMMAND_TOGGLE_ACTIVATED | no | no | no | no | ||
COMMAND_TOGGLE_DEACTIVATED | no | no | no | no | ||
JOB_ABILITY_CANNOT_START_COOLDOWN | yes | yes | no | yes | ||
JOB_ABILITY_START | yes | yes | no | yes | ||
JOB_LEVEL_NOT_HIGH_ENOUGH | yes | yes | no | no | item | |
JOB_LEVEL_UP | yes | yes | no | no | ||
JOB_XP_ACTION_BAR | yes | yes | no | no |
Special Message per job
To set a special message per job you can just add an extra message with the same key but _jobid
at the end of it eg.
instead of JOB_XP_ACTION_BAR
JOB_XP_ACTION_BAR_miner
if it is for a job with the id miner. If no such message exists for a job the default version without the additional jobid is used (in this case JOB_XP_ACTION_BAR
)
Multiple Languages
If there is more than one language available the plugin will send each message to the player in the language they have chosen in the minecraft client, if this (or a similar eg. en instead of en-us) language isn’t there it will use the language set in the fallbackLanguage
setting and if also this language isn’t available it will use the language of the minecraft server or in the worst case (eg. the language is also not available) the first language it can find.
Parameters
Job Parameters
parameter | description |
---|---|
job.xp | current amount of xp the player has |
job.level | current level the player has in the job |
job.name | name of the job |
job.selected | true / false (if the job is selected) |
job.description | description of the job |
job.xp_till_next_level | xp the player is missing to reach the next level |
job.xp_for_next_level | xp the player needs to get to the next level |
Ability Parameters
parameter | description |
---|---|
ability.name | name of the ability |
ability.remaining_cooldown | time remaining till the ability can be used again |
Player Parameters
parameter | description |
---|---|
player.name | name of the player |
player.display_name | name of the player in the right formating |
Other Parameters
parameter | description |
---|---|
xp | amount of xp added |
source | name of the source of the command |
maxjobs | maximum amount of jobs a player can have |
item | the name of the item used in the blocked action |