mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Use native union types for TranslationContainer|string
This commit is contained in:
@ -58,10 +58,7 @@ class ConsoleCommandSender implements CommandSender{
|
||||
return $this->language;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param TranslationContainer|string $message
|
||||
*/
|
||||
public function sendMessage($message) : void{
|
||||
public function sendMessage(TranslationContainer|string $message) : void{
|
||||
$server = $this->getServer();
|
||||
if($message instanceof TranslationContainer){
|
||||
$message = $this->getLanguage()->translate($message);
|
||||
|
Reference in New Issue
Block a user