2013-08-07 07:16:57 +00:00
|
|
|
From 1f0602e700904904b1d77ec02b066f955dcf6ea0 Mon Sep 17 00:00:00 2001
|
2013-07-12 01:21:22 +00:00
|
|
|
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
|
2013-08-07 07:16:57 +00:00
|
|
|
index 7a5b5ed..6b4bcac 100644
|
2013-07-12 01:21:22 +00:00
|
|
|
--- a/src/main/java/org/bukkit/conversations/ConversationContext.java
|
|
|
|
+++ b/src/main/java/org/bukkit/conversations/ConversationContext.java
|
2013-08-07 07:16:57 +00:00
|
|
|
@@ -44,6 +44,14 @@ public class ConversationContext {
|
2013-07-12 01:21:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
+ * 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.
|
2013-08-07 07:16:57 +00:00
|
|
|
*
|
2013-07-12 01:21:22 +00:00
|
|
|
--
|
|
|
|
1.8.1.2
|
|
|
|
|