Fixes for chat formatting

This commit is contained in:
Shoghi Cervantes 2014-06-25 22:32:57 +02:00
parent b506ab349f
commit de5e9df82b

View File

@ -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){