mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Added getAllSessionData() to the Conversation API.
This commit is contained in:
parent
9290ff91ef
commit
aae62d51ac
1 changed files with 14 additions and 3 deletions
|
@ -11,9 +11,9 @@ import java.util.Map;
|
|||
* invocations.
|
||||
*/
|
||||
public class ConversationContext {
|
||||
private Conversable forWhom;
|
||||
private Map<Object, Object> sessionData;
|
||||
private Plugin plugin;
|
||||
private final Conversable forWhom;
|
||||
private final Map<Object, Object> sessionData;
|
||||
private final Plugin plugin;
|
||||
|
||||
/**
|
||||
* @param plugin The owning plugin.
|
||||
|
@ -45,6 +45,17 @@ public class ConversationContext {
|
|||
return forWhom;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the underlying sessionData map.
|
||||
*
|
||||
* May be directly modified to manipulate session data.
|
||||
*
|
||||
* @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
|
||||
|
|
Loading…
Add table
Reference in a new issue