2015-04-09 03:41:04 +00:00
|
|
|
From 47931fc43414c74c78ed3409360d26669b1ff2a8 Mon Sep 17 00:00:00 2001
|
2014-07-21 20:46:54 +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
|
|
|
|
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.
|
|
|
|
--
|
2014-11-28 01:17:45 +00:00
|
|
|
2.1.0
|
2014-07-21 20:46:54 +00:00
|
|
|
|