mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 22:59:59 +00:00
Fixes for chat formatting
This commit is contained in:
parent
b506ab349f
commit
de5e9df82b
@ -100,6 +100,24 @@ class TextFormat{
|
||||
}
|
||||
$newString["extra"][$index] = [];
|
||||
$pointer =& $newString["extra"][$index];
|
||||
if($color !== "white"){
|
||||
$pointer["color"] = $color;
|
||||
}
|
||||
if($bold !== false){
|
||||
$pointer["bold"] = true;
|
||||
}
|
||||
if($italic !== false){
|
||||
$pointer["italic"] = true;
|
||||
}
|
||||
if($underlined !== false){
|
||||
$pointer["underlined"] = true;
|
||||
}
|
||||
if($strikethrough !== false){
|
||||
$pointer["strikethrough"] = true;
|
||||
}
|
||||
if($obfuscated !== false){
|
||||
$pointer["obfuscated"] = true;
|
||||
}
|
||||
++$index;
|
||||
}
|
||||
switch($token){
|
||||
|
Loading…
x
Reference in New Issue
Block a user