perm = new PermissibleBase([DefaultPermissions::ROOT_CONSOLE => true]); } public function getServer() : Server{ return $this->server; } public function getLanguage() : Language{ return $this->language; } public function sendMessage(Translatable|string $message) : void{ if($message instanceof Translatable){ $message = $this->getLanguage()->translate($message); } foreach(explode("\n", trim($message)) as $line){ Terminal::writeLine(TextFormat::GREEN . "Command output | " . TextFormat::addBase(TextFormat::WHITE, $line)); } } public function getName() : string{ return "CONSOLE"; } public function getScreenLineHeight() : int{ return $this->lineHeight ?? PHP_INT_MAX; } public function setScreenLineHeight(?int $height) : void{ if($height !== null && $height < 1){ throw new \InvalidArgumentException("Line height must be at least 1"); } $this->lineHeight = $height; } }