All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.alangomes.springspigot.context.SessionService Maven / Gradle / Ivy

The newest version!
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