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

@ -23,12 +23,15 @@ declare(strict_types=1);
namespace pocketmine\command;
use pocketmine\lang\Language;
use pocketmine\lang\TranslationContainer;
use pocketmine\permission\Permissible;
use pocketmine\Server;
interface CommandSender extends Permissible{
public function getLanguage() : Language;
/**
* @param TranslationContainer|string $message
*/