Start work on storing zombie stats for players, also fix /whonick (Thanks FabTheZen).

This commit is contained in:
UnknownShadow200 2016-04-14 22:37:28 +10:00
parent 3ffb7c3a3d
commit 776afe6ce4
3 changed files with 20 additions and 3 deletions

View File

@ -63,5 +63,24 @@ namespace MCGalaxy.Games {
/// <summary> List of custom infect messages this player has. </summary>
internal List<string> InfectMessages = null;
/// <summary> The total number of rounds this player has survived. </summary>
public int TotalRoundsSurvived;
/// <summary> The maximum number of rounds this player has consecutively survived. </summary>
public int MaxRoundsSurvived;
/// <summary> The current number of rounds this player has consecutively survived. </summary>
public int CurrentRoundsSurvived;
/// <summary> The total number of other players this player has infected. </summary>
public int TotalInfected;
/// <summary> Maximum number of players this player infected in the current round. </summary>
public int MaxInfected;
/// <summary> The current number of other players this player infected in the current round. </summary>
public int CurrentInfected;
}
}

View File

@ -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 + "`"))

View File

@ -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) {