diff --git a/Games/GameProps.cs b/Games/GameProps.cs index ff6f3a290..35c9ed5c0 100644 --- a/Games/GameProps.cs +++ b/Games/GameProps.cs @@ -63,5 +63,24 @@ namespace MCGalaxy.Games { /// List of custom infect messages this player has. internal List InfectMessages = null; + + + /// The total number of rounds this player has survived. + public int TotalRoundsSurvived; + + /// The maximum number of rounds this player has consecutively survived. + public int MaxRoundsSurvived; + + /// The current number of rounds this player has consecutively survived. + public int CurrentRoundsSurvived; + + /// The total number of other players this player has infected. + public int TotalInfected; + + /// Maximum number of players this player infected in the current round. + public int MaxInfected; + + /// The current number of other players this player infected in the current round. + public int CurrentInfected; } } diff --git a/Levels/Level.cs b/Levels/Level.cs index 497617f50..3a961a7ca 100644 --- a/Levels/Level.cs +++ b/Levels/Level.cs @@ -606,9 +606,7 @@ namespace MCGalaxy try { Level level = LvlFile.Load(givenName, path); - level.permissionbuild = LevelPermission.Builder; level.setPhysics(phys); - //level.textures = new LevelTextures(level); level.backedup = true; using (DataTable ZoneDB = Database.fillData("SELECT * FROM `Zone" + givenName + "`")) diff --git a/Player/PlayerInfo.cs b/Player/PlayerInfo.cs index 88eec3a36..91da4a2e6 100644 --- a/Player/PlayerInfo.cs +++ b/Player/PlayerInfo.cs @@ -101,7 +101,7 @@ namespace MCGalaxy { foreach (Player pl in players) { if (!Player.CanSee(p, pl)) continue; - string name = Colors.StripColours(nick); + string name = Colors.StripColours(pl.DisplayName); if (name.Equals(nick, comp)) return pl; if (name.IndexOf(nick, comp) >= 0) {