2015-08-08 20:58:45 +00:00
|
|
|
package tk.sznp.thebuttonautoflair;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
2015-10-02 22:15:13 +00:00
|
|
|
import org.bukkit.Location;
|
|
|
|
|
2015-08-31 19:21:20 +00:00
|
|
|
public class MaybeOfflinePlayer { // 2015.08.08.
|
2015-08-08 20:58:45 +00:00
|
|
|
public String PlayerName;
|
|
|
|
public String UserName;
|
2015-08-31 19:21:20 +00:00
|
|
|
public String Flair; // If the user comments their name, it gets set, it
|
|
|
|
// doesn't matter if they accepted it or not
|
2015-08-08 20:58:45 +00:00
|
|
|
public boolean AcceptedFlair;
|
|
|
|
public boolean IgnoredFlair;
|
2015-08-31 19:21:20 +00:00
|
|
|
public boolean FlairDecided; // 2015.08.09.
|
|
|
|
public boolean FlairRecognised; // 2015.08.10.
|
|
|
|
public boolean CommentedOnReddit; // 2015.08.10.
|
|
|
|
public boolean RPMode; // 2015.08.25.
|
2015-09-18 18:52:09 +00:00
|
|
|
public boolean PressedF; //2015.09.18.
|
2015-10-02 22:15:13 +00:00
|
|
|
public Location SavedLocation; //2015.10.02.
|
2015-08-31 19:21:20 +00:00
|
|
|
public static HashMap<String, MaybeOfflinePlayer> AllPlayers = new HashMap<>(); // 2015.08.08.
|
|
|
|
|
|
|
|
public static MaybeOfflinePlayer AddPlayerIfNeeded(String playername) {
|
|
|
|
if (!AllPlayers.containsKey(playername)) {
|
|
|
|
MaybeOfflinePlayer player = new MaybeOfflinePlayer();
|
|
|
|
player.PlayerName = playername;
|
|
|
|
player.Flair = ""; // 2015.08.10.
|
|
|
|
AllPlayers.put(playername, player);
|
|
|
|
return player;
|
2015-08-08 20:58:45 +00:00
|
|
|
}
|
|
|
|
return AllPlayers.get(playername);
|
2015-08-31 19:21:20 +00:00
|
|
|
}
|
2015-08-08 20:58:45 +00:00
|
|
|
}
|