1.3.7
1.3.7
- Added Confirmation annotation.
- Fixed Command#max not working properly.
- Fixed Cooldown annotation not working properly if bypass permission is not set.
Example Command with Confirmation Annotation
@Command(
name = "confirmationTest"
)
@Confirmation(
message = "Are you sure, if so, please execute command again to confirm.",
expireAfter = 10,
bypassPerm = "confirmation.bypass",
timeUnit = TimeUnit.SECONDS,
overrideConsole = true
)
public void confirmationCommand(CommandArguments arguments) {
arguments.sendMessage("Confirmation successful.");
}
Full Changelog: 1.3.6...1.3.7