1.3.3
1.3.3 Release Notes
- Added new cooldown system, see Cooldown annotation.
- Now registering command aliases as a plugin command, if they have head command and are sub-commands then they'll be registered as a sub-command.
- Separated
SHORT_OR_LONG_ARG_SIZE
intoSHORT_ARG_SIZE
andLONG_ARG_SIZE
variables. - Fixed
knownCommands
field not found. - Removed
CommandFramework#unregisterCommands(Object)
method.
Example Command with Cooldown Annotation
@Command(
name = "test"
)
@Cooldown(
cooldown = 10,
timeUnit = TimeUnit.SECONDS, // default is seconds
bypassPerm = "cooldown.bypass",
overrideConsole = true
)
public void testCommand(CommandArguments arguments) {
arguments.sendMessage("Test message.");
}
Full Changelog: 1.3.2...1.3.3