Skip to content

Releases: Spirit55555/PHP-Minecraft

v1.3.5

08 Dec 22:10
Compare
Choose a tag to compare
  • Replace utf8_encode() with mb_convert_encoding(), as utf8_encode() is deprecated in PHP 8.2.0
  • Added a GitHub actions workflow for PHPUnit testing

v1.3.4

11 Feb 21:11
Compare
Choose a tag to compare
  • 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

26 Jan 20:28
Compare
Choose a tag to compare

Fix a bug in MinecraftJSON, it will now parse "text" before "extra" in the JSON.

v1.3.2

24 Oct 11:04
Compare
Choose a tag to compare

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

28 May 14:08
Compare
Choose a tag to compare

Added better checks to ensure values are the correct type in MinecraftJSONColors::convertToLegacy().

v1.3

13 May 19:05
Compare
Choose a tag to compare

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

23 Jun 21:13
Compare
Choose a tag to compare

Move newline endings outside elements.

v1.2.1

22 Jun 19:58
Compare
Choose a tag to compare

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

06 May 20:25
Compare
Choose a tag to compare

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

20 Nov 17:22
Compare
Choose a tag to compare

A few fixes to MinecraftJsonColors.php