dev.alangomes.springspigot.context.SessionService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spigot-spring-boot-starter Show documentation
Show all versions of spigot-spring-boot-starter Show documentation
Spring support for spigot plugins
package dev.alangomes.springspigot.context;
import org.bukkit.command.CommandSender;
import java.util.Map;
/**
* Service that provides a key-value storage for each sender.
*/
public interface SessionService {
/**
* Return the session of the current sender in the context
* {@link dev.alangomes.springspigot.context.Context}
*
* @return the session of the sender in the context
*/
Map current();
/**
* Return the current session of {@param sender}
*
* @param sender the {@link org.bukkit.command.CommandSender sender} to get the session from
* @return the session of {@param sender}
*/
Map of(CommandSender sender);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy