MicroLib icon

MicroLib -----

[Discontinued] A nifty library to suit your plugin development needs! | Shaded or Dependency



v2.2.0
v2.2.0
Notes:
  • Developers, MicroUtils#colorize is now deprecated and you should use MessageUtils#colorizeAll instead.
  • This update was tested.

Changes:
New Classes
  • MessageUtils.java
    • This is a replacement to MicroUtils#colorize, allowing developers to translate standard color codes, hex color codes (if supported), and both at once!
    • All plugins using MicroUtils' colorize method will automatically redirect to the colorizeAll method! (Developers, please switch anyways - MicroUtils is deprecated now!)
    • Thanks to @Elementeral and @imDaniX for providing the code for hex code translation in this thread!
  • VersionUtils.java
    • This allows developers to check what major Minecraft version a server is running.
    • Contains simple methods such as isOneSixteen() and more complex (calculations-wise) , getMajorMinecraftVersion().
    • This covers all major Minecraft versions (1.6 to 1.16, and future versions will come).

Upgraded Classes
  • QuickTimer.java
    • Now uses far simpler code, and also allows developers to specify a starting time.

Removed / Deprecated Classes
  • MicroUtils.java
    • The features of MicroUtils.java have been moved to and been expanded upon in MessageUtils.java.

Insignificant Improvements

  • ItemBuilder.java: added final modifiers on two lists
  • Added method isInstalledAsPlugin to MicroLib.java.
  • Replaced unnecessary suppressions in MicroLogger.java and also instead utilising new MessageUtils.java class.
  • Better YAML structure in inbuilt plugin.yml.
  • Upgraded severity of update check failure from warning to severe in UpdateChecker.java.
  • Replaced Objects#requireNonNull(object) in WholeSound.java to assert object != null.
  • Replaced internal colorize method in WholeTitle.java (unsure why it still remained), now using new MessageUtils.java class.
  • Improved javadocs in most classes.
  • Now compiled with MC 1.16.5 instead of MC 1.16.3

If you like this update, feel free to leave a like or positive review :) Thank you all!
----------, Feb 27, 2021
Resource Information
Author:
----------
Total Downloads: 1,897
First Release: Sep 19, 2020
Last Update: Apr 2, 2022
Category: ---------------
All-Time Rating:
3 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings