Skip to content

Releases: bytezlol/ChatFormat

ChatFormat v1.1

14 May 09:46

Choose a tag to compare

v1.1 - Refactor & Cleanup

A full internal rewrite for cleaner code, better performance, and easier maintenance. No breaking changes for end users.

Improvements

  • Renamed main class MainChatFormat for clarity
  • New FormatManager - all chat format logic centralized in one place (was scattered across Main, FormatUtil, and ChatListener)
  • New FileUtil - consistent config loading and reloading
  • Cleaner ColorUtil - cached MiniMessage instance, split into focused methods, all parameters now @NotNull
  • Slimmer ChatListener - reduced from 25 to 14 lines, delegates entirely to FormatManager

Fixes

  • LuckPerms lookups now null-safe (no more NPEs if LuckPerms is missing)
  • URL regex no longer crashes on edge cases with no trailing whitespace
  • Reload command now properly clears the config cache

Internal

  • Removed FormatUtil (logic absorbed into FormatManager + ColorUtil)
  • ColorUtil is now final with a private constructor
  • Strip helpers (stripLegacyCodes, stripHexCodes) are now public utility methods