From 855d97b89a472ccd657aa03c1571fa84e540c86c Mon Sep 17 00:00:00 2001 From: Alex Bennett Date: Fri, 12 Jul 2013 11:21:22 +1000 Subject: [PATCH] Added getAllSessionData() to the Conversation API. --- ...lSessionData-to-the-Conversation-API.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Bukkit-Patches/0014-Added-getAllSessionData-to-the-Conversation-API.patch diff --git a/Bukkit-Patches/0014-Added-getAllSessionData-to-the-Conversation-API.patch b/Bukkit-Patches/0014-Added-getAllSessionData-to-the-Conversation-API.patch new file mode 100644 index 000000000..b405bfbbd --- /dev/null +++ b/Bukkit-Patches/0014-Added-getAllSessionData-to-the-Conversation-API.patch @@ -0,0 +1,28 @@ +From 7dcd6e3e77ee83a18170832951b483718b7543e3 Mon Sep 17 00:00:00 2001 +From: Alex Bennett +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 4ff9858..22aa1a9 100644 +--- a/src/main/java/org/bukkit/conversations/ConversationContext.java ++++ b/src/main/java/org/bukkit/conversations/ConversationContext.java +@@ -42,6 +42,14 @@ public class ConversationContext { + } + + /** ++ * Gets the entire sessionData map. ++ * @return The full sessionData map. ++ */ ++ public Map 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. + * @param key The session data key. +-- +1.8.1.2 +