getYesNo

public void getYesNo(Player player, Consumer<String> callback, String key, Component title)

The chat thingy doesn't really work. It works only on the dialogs

Parameters

player

The player to open the util to

callback

Callback is the piece of code to be executed

key

(Dialog Only) The key, the buttons/dialog should have

title

(Dialog Only) The title in the dialog