Add cooldown
action and allow /es-used
to query.
- Version updated to 2.5.0.
- The
cooldown
action prevents a sign from being used again by the same player for a specified number of seconds. Messages are automatically formatted as seconds, minutes, hours or days. /es-used
can now query the number of times a player has used a sign, as well as set the usage count.- Additional commands now abort subsequent actions:
- The
announce
action now aborts subsequent actions when the announcement has already been shown (likemax
). cmd
andopcmd
abort subsequent actions when the command fails (e.g. permissions) or throws an Exception.tpbed
aborts subsequent actions when the player doesn't have a bed spawn set.
- The
- Various compiler warnings have been fixed, including deprecations and unused fields.
- The
SignAction.action()
method now returnsboolean
indicating whether subsequent actions should be executed, replacing theshouldExit()
method and reducing duplication and complexity.