1.9.5
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:
UnknownFlagExceptionMissingFlagInputExceptionOnlyPlayerAllowedExceptionValueOutOfConstraintExceptionWordOutOfRestrictionsExceptionUnknownSubCommandExceptionInvalidMapEntryFormatException
NEW Bukkit exceptions:
OnlyPlayerAllowedException(exists in other platforms except inCLI)InvalidLocationFormatExceptionInvalidSelectorFieldCriteriaFormatUnknownSelectorFieldExceptionUnknownEntitySelectionTypeException
Updated
CooldownExceptionby removing the use of java primitivelongand replace its use with the following methods:getCooldownDuration()returns ajava.time.Durationresembling the duration of this cooldown.getRemainingDuration()returns ajava.time.Durationresembling the remaining duration for this cooldown to end.getLastTimeExecuted()returns ajava.time.Instantresembling 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