mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
TextFormat: Added EOL constant (for MCPE)
MCPE always uses LF for line endings. PHP_EOL might be LF, CRLF, or CR depending on the platform, so it should not be used for (for example) sending messages to players containing newlines.
This commit is contained in:
parent
bb3e72ea4b
commit
4c46087ffc
@ -28,6 +28,7 @@ namespace pocketmine\utils;
|
||||
*/
|
||||
abstract class TextFormat{
|
||||
public const ESCAPE = "\xc2\xa7"; //§
|
||||
public const EOL = "\n";
|
||||
|
||||
public const BLACK = TextFormat::ESCAPE . "0";
|
||||
public const DARK_BLUE = TextFormat::ESCAPE . "1";
|
||||
|
Loading…
x
Reference in New Issue
Block a user