Updated some more hardcoded translation key usages missed by 94e16f416d

This commit is contained in:
Dylan K. Taylor
2021-06-30 14:02:55 +01:00
parent 76a74b3931
commit f3bd48e6cb
4 changed files with 29 additions and 27 deletions

View File

@ -355,7 +355,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
*/
public function getLeaveMessage(){
if($this->spawned){
return new TranslationContainer(TextFormat::YELLOW . "%multiplayer.player.left", [
return new TranslationContainer(TextFormat::YELLOW . "%" . KnownTranslationKeys::MULTIPLAYER_PLAYER_LEFT, [
$this->getDisplayName()
]);
}
@ -799,7 +799,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
});
$ev = new PlayerJoinEvent($this,
new TranslationContainer(TextFormat::YELLOW . "%multiplayer.player.joined", [
new TranslationContainer(TextFormat::YELLOW . "%" . KnownTranslationKeys::MULTIPLAYER_PLAYER_JOINED, [
$this->getDisplayName()
])
);