mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Added methods for adding custom names directly to items
This commit is contained in:
@ -55,7 +55,7 @@ abstract class Terminal{
|
||||
if(isset($opts["disable-ansi"])){
|
||||
self::$formattingCodes = false;
|
||||
}else{
|
||||
self::$formattingCodes = ((Utils::getOS() !== "win" and getenv("TERM") != "" and (!function_exists("posix_ttyname") or posix_ttyname(STDOUT) !== false)) or isset($opts["enable-ansi"]));
|
||||
self::$formattingCodes = ((Utils::getOS() !== "win" and getenv("TERM") != "" and (!function_exists("posix_ttyname") or !defined("STDOUT") or posix_ttyname(STDOUT) !== false)) or isset($opts["enable-ansi"]));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user