Class TownyConversation
java.lang.Object
com.palmergames.bukkit.towny.conversation.TownyConversation
- All Implemented Interfaces:
EventListener
,org.bukkit.conversations.ConversationAbandonedListener
,org.bukkit.conversations.ConversationPrefix
- Direct Known Subclasses:
ResidentConversation
,SetupConversation
public class TownyConversation
extends Object
implements org.bukkit.conversations.ConversationPrefix, org.bukkit.conversations.ConversationAbandonedListener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
conversationAbandoned
(@NotNull org.bukkit.conversations.ConversationAbandonedEvent event) org.bukkit.entity.Player
getPlayer
(@NotNull org.bukkit.conversations.ConversationContext context) @NotNull String
getPrefix
(@NotNull org.bukkit.conversations.ConversationContext context) org.bukkit.command.CommandSender
getSender
(@NotNull org.bukkit.conversations.ConversationContext context) void
runOnResponse
(Consumer<Object> consumer)
-
Field Details
-
consumer
-
-
Constructor Details
-
TownyConversation
public TownyConversation()
-
-
Method Details
-
getPrefix
@NotNull public @NotNull String getPrefix(@NotNull @NotNull org.bukkit.conversations.ConversationContext context) - Specified by:
getPrefix
in interfaceorg.bukkit.conversations.ConversationPrefix
-
getPlayer
public org.bukkit.entity.Player getPlayer(@NotNull @NotNull org.bukkit.conversations.ConversationContext context) -
getSender
public org.bukkit.command.CommandSender getSender(@NotNull @NotNull org.bukkit.conversations.ConversationContext context) -
runOnResponse
-
conversationAbandoned
public void conversationAbandoned(@NotNull @NotNull org.bukkit.conversations.ConversationAbandonedEvent event) - Specified by:
conversationAbandoned
in interfaceorg.bukkit.conversations.ConversationAbandonedListener
-