Class ConfirmationHandler

java.lang.Object
com.palmergames.bukkit.towny.confirmations.ConfirmationHandler

public class ConfirmationHandler extends Object
A class that handles the processing confirmations sent in Towny.
Author:
Articdive, Suneet Tipirneni (Siris)
  • Constructor Details

    • ConfirmationHandler

      public ConfirmationHandler()
  • Method Details

    • revokeConfirmation

      public static void revokeConfirmation(org.bukkit.command.CommandSender sender)
      Revokes the confirmation associated with the given sender.
      Parameters:
      sender - The sender to get the confirmation from.
    • sendConfirmation

      public static void sendConfirmation(org.bukkit.command.CommandSender sender, Confirmation confirmation)
      Registers and begins the timeout timer for the confirmation.
      Parameters:
      sender - The sender to receive the confirmation.
      confirmation - The confirmation to add.
    • acceptConfirmation

      public static void acceptConfirmation(org.bukkit.command.CommandSender sender)
      Internal use only.
      Parameters:
      sender - The sender using the confirmation.
    • hasConfirmation

      public static boolean hasConfirmation(org.bukkit.command.CommandSender sender)