diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/bukkit/conversations/FakeConversable.java | 6 | ||||
-rw-r--r-- | src/test/java/org/bukkit/plugin/messaging/TestPlayer.java | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/test/java/org/bukkit/conversations/FakeConversable.java b/src/test/java/org/bukkit/conversations/FakeConversable.java index a04bfc8c..87fb3113 100644 --- a/src/test/java/org/bukkit/conversations/FakeConversable.java +++ b/src/test/java/org/bukkit/conversations/FakeConversable.java @@ -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; } diff --git a/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java b/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java index 9b5aa5e4..d812f5a7 100644 --- a/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java +++ b/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java @@ -10,6 +10,7 @@ import java.util.UUID; import org.bukkit.*; import org.bukkit.block.Block; import org.bukkit.conversations.Conversation; +import org.bukkit.conversations.ConversationAbandonedEvent; import org.bukkit.entity.Arrow; import org.bukkit.entity.Egg; import org.bukkit.entity.Entity; @@ -739,4 +740,8 @@ public class TestPlayer implements Player { public void abandonConversation(Conversation conversation) { throw new UnsupportedOperationException("Not supported yet."); } + + public void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) { + throw new UnsupportedOperationException("Not supported yet."); + } } |