mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 22:30:52 -04:00
Start work on storing zombie stats for players, also fix /whonick (Thanks FabTheZen).
This commit is contained in:
parent
3ffb7c3a3d
commit
776afe6ce4
@ -63,5 +63,24 @@ namespace MCGalaxy.Games {
|
|||||||
|
|
||||||
/// <summary> List of custom infect messages this player has. </summary>
|
/// <summary> List of custom infect messages this player has. </summary>
|
||||||
internal List<string> InfectMessages = null;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -606,9 +606,7 @@ namespace MCGalaxy
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
Level level = LvlFile.Load(givenName, path);
|
Level level = LvlFile.Load(givenName, path);
|
||||||
level.permissionbuild = LevelPermission.Builder;
|
|
||||||
level.setPhysics(phys);
|
level.setPhysics(phys);
|
||||||
//level.textures = new LevelTextures(level);
|
|
||||||
level.backedup = true;
|
level.backedup = true;
|
||||||
|
|
||||||
using (DataTable ZoneDB = Database.fillData("SELECT * FROM `Zone" + givenName + "`"))
|
using (DataTable ZoneDB = Database.fillData("SELECT * FROM `Zone" + givenName + "`"))
|
||||||
|
@ -101,7 +101,7 @@ namespace MCGalaxy {
|
|||||||
|
|
||||||
foreach (Player pl in players) {
|
foreach (Player pl in players) {
|
||||||
if (!Player.CanSee(p, pl)) continue;
|
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.Equals(nick, comp)) return pl;
|
||||||
if (name.IndexOf(nick, comp) >= 0) {
|
if (name.IndexOf(nick, comp) >= 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user