Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.ultimamc.dev.rotation;
- import java.util.HashMap;
- import org.bukkit.entity.Player;
- public class RotationPlayer {
- private static HashMap<Player, Integer> lvlhash = new HashMap<Player, Integer>();
- private static HashMap<Player, State> statehash = new HashMap<Player, RotationPlayer.State>();
- static int level;
- public enum State {
- PLAYING, SPECTATING;
- }
- public static int getLevel(Player p) {
- return lvlhash.get(p);
- }
- public static void setLevel(Player p, int level) {
- lvlhash.put(p, level);
- }
- public static void remove(Player p) {
- lvlhash.remove(p);
- }
- public static State getState(Player p) {
- return statehash.get(p);
- }
- public static State setState(Player p, State state) {
- return statehash.put(p, state);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement