org.bukkit.conversations.ConversationAbandonedEvent Java Examples
The following examples show how to use
org.bukkit.conversations.ConversationAbandonedEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SSHDConversationTracker.java From Bukkit-SSHD with Apache License 2.0 | 6 votes |
synchronized void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) { if (!this.conversationQueue.isEmpty()) { if (this.conversationQueue.getFirst() == conversation) { conversation.abandon(details); } if (this.conversationQueue.contains(conversation)) { this.conversationQueue.remove(conversation); } if (!this.conversationQueue.isEmpty()) { this.conversationQueue.getFirst().outputNextPrompt(); } } }
Example #2
Source File: SSHDConversationTracker.java From Bukkit-SSHD with Apache License 2.0 | 5 votes |
public synchronized void abandonAllConversations() { LinkedList<Conversation> oldQueue = this.conversationQueue; this.conversationQueue = new LinkedList<>(); for (Conversation conversation : oldQueue) { try { conversation.abandon(new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller())); } catch (Throwable var5) { Bukkit.getLogger().log(Level.SEVERE, "Unexpected exception while abandoning a conversation", var5); } } }
Example #3
Source File: ConversationTracker.java From Kettle with GNU General Public License v3.0 | 5 votes |
public synchronized void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) { if (!conversationQueue.isEmpty()) { if (conversationQueue.getFirst() == conversation) { conversation.abandon(details); } if (conversationQueue.contains(conversation)) { conversationQueue.remove(conversation); } if (!conversationQueue.isEmpty()) { conversationQueue.getFirst().outputNextPrompt(); } } }
Example #4
Source File: ConversationTracker.java From Kettle with GNU General Public License v3.0 | 5 votes |
public synchronized void abandonAllConversations() { LinkedList<Conversation> oldQueue = conversationQueue; conversationQueue = new LinkedList<Conversation>(); for (Conversation conversation : oldQueue) { try { conversation.abandon(new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller())); } catch (Throwable t) { Bukkit.getLogger().log(Level.SEVERE, "Unexpected exception while abandoning a conversation", t); } } }
Example #5
Source File: ConversationTracker.java From Thermos with GNU General Public License v3.0 | 5 votes |
public synchronized void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) { if (!conversationQueue.isEmpty()) { if (conversationQueue.getFirst() == conversation) { conversation.abandon(details); } if (conversationQueue.contains(conversation)) { conversationQueue.remove(conversation); } if (!conversationQueue.isEmpty()) { conversationQueue.getFirst().outputNextPrompt(); } } }
Example #6
Source File: ConversationTracker.java From Thermos with GNU General Public License v3.0 | 5 votes |
public synchronized void abandonAllConversations() { LinkedList<Conversation> oldQueue = conversationQueue; conversationQueue = new LinkedList<Conversation>(); for(Conversation conversation : oldQueue) { try { conversation.abandon(new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller())); } catch (Throwable t) { Bukkit.getLogger().log(Level.SEVERE, "Unexpected exception while abandoning a conversation", t); } } }
Example #7
Source File: CraftPlayer.java From Thermos with GNU General Public License v3.0 | 4 votes |
public void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) { conversationTracker.abandonConversation(conversation, details); }
Example #8
Source File: SSHDCommandSender.java From Bukkit-SSHD with Apache License 2.0 | 4 votes |
public void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) { this.conversationTracker.abandonConversation(conversation, details); }
Example #9
Source File: SSHDCommandSender.java From Bukkit-SSHD with Apache License 2.0 | 4 votes |
public void abandonConversation(Conversation conversation) { this.conversationTracker.abandonConversation(conversation, new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller())); }
Example #10
Source File: UHPlugin.java From KTP with GNU General Public License v3.0 | 4 votes |
@Override public void conversationAbandoned(ConversationAbandonedEvent abandonedEvent) { if (!abandonedEvent.gracefulExit()) { abandonedEvent.getContext().getForWhom().sendRawMessage(ChatColor.RED+"Abandonné par "+abandonedEvent.getCanceller().getClass().getName()); } }
Example #11
Source File: CraftConsoleCommandSender.java From Thermos with GNU General Public License v3.0 | 4 votes |
public void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) { conversationTracker.abandonConversation(conversation, details); }
Example #12
Source File: CraftConsoleCommandSender.java From Thermos with GNU General Public License v3.0 | 4 votes |
public void abandonConversation(Conversation conversation) { conversationTracker.abandonConversation(conversation, new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller())); }
Example #13
Source File: CraftPlayer.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Override public void abandonConversation(Conversation conversation) { conversationTracker.abandonConversation(conversation, new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller())); }
Example #14
Source File: CraftPlayer.java From Thermos with GNU General Public License v3.0 | 4 votes |
public void abandonConversation(Conversation conversation) { conversationTracker.abandonConversation(conversation, new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller())); }
Example #15
Source File: SingleCommandSender.java From DiscordSRV with GNU General Public License v3.0 | 4 votes |
@Override public void abandonConversation(Conversation arg0, ConversationAbandonedEvent arg1) { sender.abandonConversation(arg0, arg1); }
Example #16
Source File: CraftConsoleCommandSender.java From Kettle with GNU General Public License v3.0 | 4 votes |
public void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) { conversationTracker.abandonConversation(conversation, details); }
Example #17
Source File: CraftConsoleCommandSender.java From Kettle with GNU General Public License v3.0 | 4 votes |
public void abandonConversation(Conversation conversation) { conversationTracker.abandonConversation(conversation, new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller())); }
Example #18
Source File: CraftPlayer.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Override public void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) { conversationTracker.abandonConversation(conversation, details); }
Example #19
Source File: NullSafeConsoleCommandSender.java From LuckPerms with MIT License | votes |
@Override public void abandonConversation(@NonNull Conversation conversation, @NonNull ConversationAbandonedEvent conversationAbandonedEvent) { throw new UnsupportedOperationException(); }