We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ModalForm intended for getting the modal response. Response can be positive or negative.
Modal form has 4 elements:
new ModalForm("Test modal form", "This is a text.") .setPositiveButton("Positive button") .setNegativeButton("Negative button") .setHandler((p, result) -> { // Player p // boolean result p.sendMessage("Taken " + (result? "positive" : "negative") + " response."); }).send(player);
Note: If you didn't set buttons text then they will be empty.