Player confirmation (Y or N)

Discussion in 'Plugin Development' started by L1nd, Oct 6, 2017.

Thread Status:
Not open for further replies.
  1. Hey,
    My question, is it possible to get a Y or N from the player after a command from a player, as confirmation?

    Example:
    Player: /reset
    Console: are you sure, Y or N?
    Player: Y
    Console: start reset ...
     
  2. Offline

    timtower Administrator Administrator Moderator

    @L1nd Conversation API is probably something worth looking at.
     
  3. Offline

    Desle

    I would open a book GUI with clickable text yes or no. This way it's more clear for the user on what to actually do, instead of the question getting lost in chat by other people talking.
     
  4. Offline

    SonyVegas_

    this is quite old, but store the player in an arraylist, and create an AsyncPlayerChatEvent, check to see if they're in the the arraylist, if they are and they type Y then do whatever, and if they are and type N then do whatever.
     
Thread Status:
Not open for further replies.

Share This Page