mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 07:09:56 +00:00
Fixes for chat formatting
This commit is contained in:
parent
b506ab349f
commit
de5e9df82b
@ -100,6 +100,24 @@ class TextFormat{
|
|||||||
}
|
}
|
||||||
$newString["extra"][$index] = [];
|
$newString["extra"][$index] = [];
|
||||||
$pointer =& $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;
|
++$index;
|
||||||
}
|
}
|
||||||
switch($token){
|
switch($token){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user