TranslationContainer: added prefix(), postfix() and format()

This commit is contained in:
Dylan K. Taylor
2021-08-14 16:08:22 +01:00
parent 13d4131d0d
commit 804d02b086
17 changed files with 46 additions and 49 deletions

View File

@@ -57,7 +57,7 @@ class EnchantCommand extends VanillaCommand{
$player = $sender->getServer()->getPlayerByPrefix($args[0]);
if($player === null){
$sender->sendMessage(new TranslationContainer(TextFormat::RED . "%" . KnownTranslationKeys::COMMANDS_GENERIC_PLAYER_NOTFOUND));
$sender->sendMessage(KnownTranslationFactory::commands_generic_player_notFound()->prefix(TextFormat::RED));
return true;
}