Skip to content

2.0.2: AnnoyingMessage and AnnoyingSender changes

Compare
Choose a tag to compare
@srnyx srnyx released this 29 Dec 20:55
· 353 commits to main since this release
5f1b05d
  • New AnnoyingMessage#DefaultReplaceType
    • Added BOOLEAN default replace type
    • Renamed DECIMAL default replace type to NUMBER
    • Renamed AnnoyingUtility#formatDouble(double, String) to AnnoyingUtility#formatNumber(Number, String)
    • Adjusted messages.yml to reflect new changes
  • Adjusted comments in build.gradle.kts
  • Added new AnnoyingSender methods
    • Added #checkPlayer() to check if the CommandSender is a player, if they aren't, it'll send the AnnoyingOptions#playerOnly message
    • Added #checkPermission(String) to check if the CommandSender has the specified permission, if they don't, it'll send the AnnoyingOptions#noPermission message
    • Both AnnoyingSender constructors now have an AnnoyingPlugin parameter (for the new methods)
  • Bump version (2.0.2)

Full Changelog: 2.0.1...2.0.2