DialogUtil
Utility for opening Paper Dialog API inputs and returning results via callbacks.
Functions
Link copied to clipboard
Link copied to clipboard
public void getInput(Component title, Player player, String key, Component content, Consumer<String> callback)
public void getInput(Component title, Player player, String key, Component content, String defaultValue, Consumer<String> callback)
Opens a text input dialog for a player and calls
callback with the result when the player confirms, or with null if they discard.Link copied to clipboard