Class ConfirmationHandler
java.lang.Object
com.palmergames.bukkit.towny.confirmations.ConfirmationHandler
A class that handles the processing confirmations sent in Towny.
- Author:
- Articdive, Suneet Tipirneni (Siris)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
acceptConfirmation
(org.bukkit.command.CommandSender sender) Internal use only.static boolean
hasConfirmation
(org.bukkit.command.CommandSender sender) static void
revokeConfirmation
(org.bukkit.command.CommandSender sender) Revokes the confirmation associated with the given sender.static void
sendConfirmation
(org.bukkit.command.CommandSender sender, Confirmation confirmation) Registers and begins the timeout timer for the confirmation.
-
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)
-