Uses of Class
com.palmergames.bukkit.towny.confirmations.ConfirmationBuilder
-
Uses of ConfirmationBuilder in com.palmergames.bukkit.towny.confirmations
Modifier and TypeMethodDescriptionstatic ConfirmationBuilder
Confirmation.runOnAccept
(Runnable acceptHandler) Creates a newConfirmationBuilder
with the supplied accept handler.static ConfirmationBuilder
Confirmation.runOnAcceptAsync
(Runnable acceptHandler) Creates a newConfirmationBuilder
with the given accept handler.ConfirmationBuilder.runOnCancel
(Runnable cancelHandler) The code to run on cancellation.ConfirmationBuilder.setAsync
(boolean runAsync) Sets whether the confirmation will run it's accept handler async or not.ConfirmationBuilder.setCancellableEvent
(CancellableTownyEvent event) ConfirmationBuilder.setCancelText
(String cancel) Sets the command which is displayed/run for the cancel command.ConfirmationBuilder.setConfirmText
(String confirm) Sets the command which is displayed/run for the confirm command.ConfirmationBuilder.setCost
(ConfirmationTransaction confirmationTransaction) Builds and sends this confirmation to the given CommandSender.ConfirmationBuilder.setDuration
(int duration) Sets the duration the confirmation will run for.ConfirmationBuilder.setPluginCommandPrefix
(String prefix) Sets the base plugin command used when the cancel or confirm commands are run.ConfirmationBuilder.setTitle
(Translatable title) Sets the title of the confirmation to be sent.ModifierConstructorDescriptionprotected
Confirmation
(ConfirmationBuilder builder) Internal use only.