Skip to content

1.9.5

Choose a tag to compare

@Mqzn Mqzn released this 15 Jun 08:33
· 553 commits to master since this release

v1.9.5

Refactored SourceException usages to be replaced with

Added new exceptions allowing for more flexibility, and
more control on the messages being sent to the source on every scenario.

NEW Core exceptions:

  • UnknownFlagException
  • MissingFlagInputException
  • OnlyPlayerAllowedException
  • ValueOutOfConstraintException
  • WordOutOfRestrictionsException
  • UnknownSubCommandException
  • InvalidMapEntryFormatException

NEW Bukkit exceptions:

  • OnlyPlayerAllowedException (exists in other platforms except in CLI)
  • InvalidLocationFormatException
  • InvalidSelectorFieldCriteriaFormat
  • UnknownSelectorFieldException
  • UnknownEntitySelectionTypeException

Updated

  • CooldownException by removing the use of java primitive long and replace its use with the following methods:
    • getCooldownDuration() returns a java.time.Duration resembling the duration of this cooldown.
    • getRemainingDuration() returns a java.time.Duration resembling the remaining duration for this cooldown to end.
    • getLastTimeExecuted() returns a java.time.Instant resembling the last time this command or usage were executed.

Improvements

  • Made Flag handling more accurate when resolving its values.
  • Bug-Fix: where flag default-values were not being resolved correctly.

Full Changelog: v1.9.4...v1.9.5