Skip to content

Commit

Permalink
added BE color
Browse files Browse the repository at this point in the history
  • Loading branch information
jgniecki committed Oct 13, 2024
1 parent 351aad7 commit 8620cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To parse a text-based MOTD using custom formatting and colors:

```php
$formatCollection = \DevLancer\MinecraftMotdParser\Collection\FormatCollection::generate();
$colorCollection = \DevLancer\MinecraftMotdParser\Collection\ColorCollection::generate();
$colorCollection = \DevLancer\MinecraftMotdParser\Collection\ColorCollection::generate(true); //When set to true, colors from BE are added
$parser = new \DevLancer\MinecraftMotdParser\Parser\TextParser($formatCollection, $colorCollection, '&');

$motd = "A &l&fMine&4craft &rServer";
Expand Down

0 comments on commit 8620cf7

Please sign in to comment.