Chroma-Chat/.metadata/.plugins/org.eclipse.core.resources/.history/b7/b048b351cd3e001518fa86d7ae2a1cf8
NorbiPeti f92b7d0f3d Lot of admin commands, bug fixes, and custom flairs
- Added many admin commands (see /u admin)
- Probably fixed the flairs for some players
- Added support for custom flairs, also used when deciding unknown flair
types
2015-08-10 00:28:15 +02:00

31 lines
907 B
Text

package tk.sznp.thebuttonautoflair;
import java.util.HashMap;
public class MaybeOfflinePlayer
{ //2015.08.08.
public String PlayerName;
public String UserName;
public String Flair; //If the user comments their name, it gets set, it doesn't matter if they accepted it or not
public boolean AcceptedFlair;
public boolean IgnoredFlair;
public FlairClassType FlairType;
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;
AllPlayers.put(playername, player);
return player;
}
return AllPlayers.get(playername);
}
public enum FlairClassType
{ //2015.08.09.
NonPresser,
CantPress,
Undecided
}
}