Skip to content

Commit c9e4b4c

Browse files
committed
thusfar
1 parent 5d0e705 commit c9e4b4c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Nether/Console/Elements/Text.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,26 @@ public function
5151
Print(int $Newlines=0):
5252
void {
5353

54-
echo $this->Get();
54+
$this->Client->PrintLn($this->Text, $Newlines);
55+
5556
return;
5657
}
5758

5859
////////////////////////////////////////////////////////////////
5960
////////////////////////////////////////////////////////////////
6061

6162
static public function
62-
New(Console\Client $Client, string $Text='', ?Dye\Colour $Colour=NULL):
63+
New(Console\Client $Client, string $Text='', ?Dye\Colour $Colour=NULL, int $Print=0):
6364
static {
6465

6566
$Output = new static([
6667
'Client' => $Client,
6768
'Text' => $Text
6869
]);
6970

71+
if($Print > 0)
72+
$Output->Print($Print);
73+
7074
return $Output;
7175
}
7276

0 commit comments

Comments
 (0)