Skip to content

Commit

Permalink
Small cleanup in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Spirit55555 committed Jan 26, 2022
1 parent e696d43 commit f7858f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ Converts Minecraft JSON (http://wiki.vg/Chat) text to legacy format ('§aHello'
require 'vendor/autoload.php';
use \Spirit55555\Minecraft\MinecraftJSONColors;

$first_component = ["text" => "first "];
$second_component = ["text" => "second ", "color" => "red", ""];
$third_component = ["text" => "third ", "strikethrough" => true];
$json = ["extra" => [$first_component, $second_component, $third_component]];
$first_component = ['text' => 'first '];
$second_component = ['text' => 'second ', 'color' => 'red'];
$third_component = ['text' => 'third ', 'strikethrough' => true];
$json = ['extra' => [$first_component, $second_component, $third_component]];

echo MinecraftJSONColors::convertToLegacy($json);
?>
Expand Down

0 comments on commit f7858f2

Please sign in to comment.