19972e09b8
5a0150f586ed3eb15fe6f1f596d1a5a7d806f0f9 Fix ITEM_BREAK e6a3911057bd94d8bd7021cbb4923fb84fb106d1 Upstream merge d1cdcf8d4c3639f956474f02ed662517cffbe23e Remove old patch 068df64aeee368377e1673667bffc7a6dcf90554 Rebuild all patches
29 lines
989 B
Diff
29 lines
989 B
Diff
From 1ea7e8ad9ead0d6cd126387608c0543244b68a3d Mon Sep 17 00:00:00 2001
|
|
From: Alex Bennett <alex.eugene.bennett@gmail.com>
|
|
Date: Thu, 11 Jul 2013 15:31:32 -0500
|
|
Subject: [PATCH] Added getAllSessionData() to the Conversation API.
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/conversations/ConversationContext.java b/src/main/java/org/bukkit/conversations/ConversationContext.java
|
|
index 4f33ff4..7390a77 100644
|
|
--- a/src/main/java/org/bukkit/conversations/ConversationContext.java
|
|
+++ b/src/main/java/org/bukkit/conversations/ConversationContext.java
|
|
@@ -46,6 +46,14 @@ public class ConversationContext {
|
|
}
|
|
|
|
/**
|
|
+ * Gets the entire sessionData map.
|
|
+ * @return The full sessionData map.
|
|
+ */
|
|
+ public Map<Object, Object> getAllSessionData() {
|
|
+ return sessionData;
|
|
+ }
|
|
+
|
|
+ /**
|
|
* Gets session data shared between all {@link Prompt} invocations. Use
|
|
* this as a way to pass data through each Prompt as the conversation
|
|
* develops.
|
|
--
|
|
2.1.0
|
|
|