[Bleeding] Added ConversationAbandonedEvent and supporting infrastructure. Whenever a conversation exits, the ConversationAbandonedEvent is triggered with details about how the conversation ended and what, if anything caused it to end. Fixes BUKKIT-986
By: rmichela <deltahat@gmail.com>
This commit is contained in:
@@ -14,6 +14,7 @@ public class FakeConversable implements Conversable {
|
||||
public String lastSentMessage;
|
||||
public Conversation begunConversation;
|
||||
public Conversation abandonedConverstion;
|
||||
public ConversationAbandonedEvent abandonedConversationEvent;
|
||||
|
||||
public boolean isConversing() {
|
||||
return false;
|
||||
@@ -33,6 +34,11 @@ public class FakeConversable implements Conversable {
|
||||
abandonedConverstion = conversation;
|
||||
}
|
||||
|
||||
public void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) {
|
||||
abandonedConverstion = conversation;
|
||||
abandonedConversationEvent = details;
|
||||
}
|
||||
|
||||
public void sendRawMessage(String message) {
|
||||
lastSentMessage = message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user