quickfixes for command messages

these will have to be fixed properly at a later date
This commit is contained in:
Dylan K. Taylor 2017-11-16 08:55:31 +00:00
parent 3a16985d45
commit 432d90bddd
2 changed files with 2 additions and 2 deletions

View File

@ -1981,7 +1981,7 @@ class Server{
}
$sender->sendMessage(new TranslationContainer(TextFormat::GOLD . "%commands.generic.notFound"));
$sender->sendMessage($this->getLanguage()->translateString(TextFormat::RED . "%commands.generic.notFound"));
return false;
}

View File

@ -168,7 +168,7 @@ abstract class Command{
}
if($this->permissionMessage === null){
$target->sendMessage(new TranslationContainer(TextFormat::RED . "%commands.generic.permission"));
$target->sendMessage($target->getServer()->getLanguage()->translateString(TextFormat::RED . "%commands.generic.permission"));
}elseif($this->permissionMessage !== ""){
$target->sendMessage(str_replace("<permission>", $this->getPermission(), $this->permissionMessage));
}