aboutsummaryrefslogtreecommitdiffhomepage
path: root/Bukkit-Patches/0011-Added-getAllSessionData-to-the-Conversation-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Bukkit-Patches/0011-Added-getAllSessionData-to-the-Conversation-API.patch')
-rw-r--r--Bukkit-Patches/0011-Added-getAllSessionData-to-the-Conversation-API.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/Bukkit-Patches/0011-Added-getAllSessionData-to-the-Conversation-API.patch b/Bukkit-Patches/0011-Added-getAllSessionData-to-the-Conversation-API.patch
new file mode 100644
index 0000000000..faac68670d
--- /dev/null
+++ b/Bukkit-Patches/0011-Added-getAllSessionData-to-the-Conversation-API.patch
@@ -0,0 +1,28 @@
+From 96428525b6d3b331fe0e6d18be7ade1d2e77582d Mon Sep 17 00:00:00 2001
+From: Alex Bennett <[email protected]>
+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.
+--
+1.9.1
+