Releases: Spirit55555/PHP-Minecraft
v1.3.5
v1.3.4
- Added support for long format of RGB/HEX colors (&x&0&0&0&0&0&0)
- Added support for choosing long RGB/HEX format in convertToMOTD() format
- Force all normal color codes to lowercase
v1.3.3
Fix a bug in MinecraftJSON, it will now parse "text" before "extra" in the JSON.
v1.3.2
Fix a small bug with the HTML output.
HTML tags, where spaces are the only output, will not be removed any more.
v1.3.1
Added better checks to ensure values are the correct type in MinecraftJSONColors::convertToLegacy().
v1.3
Summer is almost here and it's time for a new release:
- Added support for Minecraft 1.16 RGB/HEX colors
- Minimum supported PHP version bumped to 7.3
- PHPDoc added
- Code clean-up, bug fixes and more tests added
RGB/HEX support is off by default, as it's not officially supported in the legacy format, only in JSON text.
v1.2.2
Move newline endings outside elements.
v1.2.1
Obfuscated text will now always get a CSS class when using MinecraftColors::convertToHTML(), regardless of CSS classes being enabled or not.
This makes it possible to style obfuscated without having to use CSS classes for all color/format codes.
v1.2
Looong overdue release:
- Minimum supported PHP version is now 7.2
- Add CSS class support to MinecraftColors::convertToHTML()
- Add
$color_char
parameter to MinecraftJsonColors::convertToLegacy() - Better detection of IP in MinecraftVotifier::sendVote()
- Added PHPUnit support with some testcases
v1.1.2
A few fixes to MinecraftJsonColors.php