Skip to content

Commit

Permalink
Add info about RGB/HEX support
Browse files Browse the repository at this point in the history
  • Loading branch information
Spirit55555 committed Feb 11, 2022
1 parent b22a716 commit bf4c85b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ echo MinecraftColors::convertToMOTD($text);
//Will be compatible with BungeeCord's config.yml file
echo MinecraftColors::convertToMOTD($text, '&');

//Will also output RGB/HEX colors, if they exist (&#000000)
//NOTE: Not supported in Vanilla Minecraft
echo MinecraftColors::convertToMOTD($text, '&', true);

//Same as above, but RGB/HEX in a long format (&x&0&0&0&0&0&0)
//NOTE: Not supported in Vanilla Minecraft
echo MinecraftColors::convertToMOTD($text, '&', true, true);

//Remove all color codes
echo MinecraftColors::clean($text);
?>
Expand Down

0 comments on commit bf4c85b

Please sign in to comment.