Implements the scrapper edit command
This commit is contained in:
@ -19,6 +19,7 @@ import net.knarcraft.blacksmith.listener.PlayerListener;
|
||||
import net.knarcraft.blacksmith.manager.EconomyManager;
|
||||
import net.knarcraft.blacksmith.trait.BlacksmithTrait;
|
||||
import net.knarcraft.knarlib.formatting.StringFormatter;
|
||||
import net.knarcraft.knarlib.formatting.TranslatableMessage;
|
||||
import net.knarcraft.knarlib.formatting.TranslatableTimeUnit;
|
||||
import net.knarcraft.knarlib.formatting.Translator;
|
||||
import net.knarcraft.knarlib.util.UpdateChecker;
|
||||
@ -73,6 +74,16 @@ public class BlacksmithPlugin extends JavaPlugin {
|
||||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the translation of the given translatable message
|
||||
*
|
||||
* @param translatableMessage <p>The message to translate</p>
|
||||
* @return <p>The message, in the language specified in the configuration</p>
|
||||
*/
|
||||
public static @NotNull String translate(TranslatableMessage translatableMessage) {
|
||||
return BlacksmithPlugin.getTranslator().getTranslatedMessage(translatableMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets settings for the blacksmith plugin's blacksmiths
|
||||
*
|
||||
|
Reference in New Issue
Block a user