malte-laukoetter / Laborus

a customisable sponge job plugin
https://ore.spongepowered.org/Lergin/Laborus
MIT License
1 stars 3 forks source link

Custom Messages for translation system #16

Closed crymates closed 7 years ago

crymates commented 7 years ago

Can u make it editable too for the Your level is not high enough message for each job? So you could message the player with You do not know how to use an {item} (e.g. iron_axe) right now

malte-laukoetter commented 7 years ago

i added an item parameter to the translation of JOB_LEVEL_NOT_HIGH_ENOUGH and with the rest of your message you mean that the message can be configured for each job individually?

crymates commented 7 years ago

Ya that's exactly what I mean. Like I said it in Issue 10 some seconds ago :)

malte-laukoetter commented 7 years ago

This has been added as of https://github.com/Lergin/Laborus/commit/65b37ee5415e80a5649756fbf9e2e6166434005a

All Messages that start with JOB_ can be set for each job through adding of _jobid to the end of the key of the translation eg. JOB_XP_ACTION_BAR_miner to set a special JOB_XP_ACTION_BAR message for the miner job.

crymates commented 7 years ago

Fantastic!