mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-26 23:02:04 -04:00
Player.players should be a field to avoid breaking backwards compatibility. (Thanks tommyz)
This commit is contained in:
parent
4ddf7f438d
commit
1f86415dfc
@ -2414,16 +2414,16 @@ catch { }*/
|
||||
#endregion
|
||||
#region == OTHER ==
|
||||
|
||||
[Obsolete]
|
||||
public static List<Player> players { get { return PlayerInfo.players; } }
|
||||
[Obsolete("Use PlayerInfo.players")]
|
||||
public static List<Player> players;
|
||||
|
||||
[Obsolete]
|
||||
[Obsolete("Use PlayerInfo.Find(name)")]
|
||||
public static Player Find(string name) { return PlayerInfo.Find(name); }
|
||||
|
||||
[Obsolete]
|
||||
[Obsolete("Use PlayerInfo.FindExact(name)")]
|
||||
public static Player FindExact(string name) { return PlayerInfo.FindExact(name); }
|
||||
|
||||
[Obsolete]
|
||||
[Obsolete("Use PlayerInfo.FindNick(name)")]
|
||||
public static Player FindNick(string name) { return PlayerInfo.FindNick(name); }
|
||||
|
||||
static byte FreeId() {
|
||||
|
@ -22,7 +22,7 @@ namespace MCGalaxy {
|
||||
public static class PlayerInfo {
|
||||
|
||||
/// <summary> List of all server players. </summary>
|
||||
public static List<Player> players = new List<Player>();
|
||||
public static List<Player> players;
|
||||
|
||||
public static List<Player> GetPlayers() { return new List<Player>(PlayerInfo.players); }
|
||||
|
||||
|
@ -408,6 +408,8 @@ namespace MCGalaxy
|
||||
}
|
||||
|
||||
public void Start() {
|
||||
PlayerInfo.players = new List<Player>();
|
||||
Player.players = PlayerInfo.players;
|
||||
StartTime = DateTime.UtcNow;
|
||||
StartTimeLocal = StartTime.ToLocalTime();
|
||||
shuttingDown = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user