What news
- Make MiniMessage work with ChatInput
- Added ChatInputAPI
ChatInput input = new ChatInput()
.setFlags(InputFlag.DISABLE_MOVEMENT)
.setAttempts(3) // Allow up to 3 attempts
.setTimeout(30) // 30-second timeout
.setAllowedCommands(Collections.singletonList("cancel")) // Allow only "/cancel" command
.setMessage(InputMessage.PROMPT, "Please enter a message:");
new ChatInputAPI(this, player, input)
.execute(
response -> player.sendMessage("You entered: " + response),
status -> player.sendMessage("Input failed with status: " + status)
);
Full Changelog: 2.1.0...2.2.0