Terminal: Added write() and writeLine() to allow easily emitting Minecraft-formatted text to the console

This commit is contained in:
Dylan K. Taylor
2018-12-29 11:28:25 +00:00
parent 498bffb34f
commit d86107e22a
2 changed files with 20 additions and 1 deletions

View File

@ -280,7 +280,7 @@ class MainLogger extends \AttachableThreadedLogger{
}
$this->synchronized(function() use ($message, $level, $time) : void{
echo Terminal::toANSI($message) . PHP_EOL;
Terminal::writeLine($message);
foreach($this->attachments as $attachment){
$attachment->call($level, $message);