public void Register(PVPArena arena) { if (Arenas == null) { Arenas = new List <PVPArena>(); } if (!Arenas.Contains(arena)) { Arenas.Add(arena); } }
internal int GetPlayerIndex(string player) { if (!Players.Contains(player)) { Players.Add(player); ClassEdit.Add("none"); Arenas.Add("none"); Playing.Add("none"); Preview.Add(false); Backups.Add(null); } return(Players.FindIndex(p => p == player)); }