CommandSender: export getLanguage()

this currently serves as a proxy to the server main language, but it can be used by third party implementations to choose a non-Server language.
This commit is contained in:
Dylan K. Taylor
2020-06-22 20:05:23 +01:00
parent 097fc7e6cb
commit 52fd1a8c1d
10 changed files with 33 additions and 20 deletions

View File

@@ -768,7 +768,7 @@ class NetworkSession{
$data = new CommandData(
$lname, //TODO: commands containing uppercase letters in the name crash 1.9.0 client
$this->server->getLanguage()->translateString($command->getDescription()),
$this->player->getLanguage()->translateString($command->getDescription()),
0,
0,
$aliasObj,