Don't force Hardcore players to spawn, they are supposed to be ghosts.
This commit is contained in:
parent
44e4199dcb
commit
65b323f004
3 changed files with 6 additions and 4 deletions
|
|
@ -213,7 +213,7 @@ namespace TShockAPI
|
|||
Tools.ForceKick(args.Player, "Server is set to hardcore characters only!");
|
||||
return true;
|
||||
}
|
||||
|
||||
args.Player.Difficulty = difficulty;
|
||||
args.Player.ReceivedInfo = true;
|
||||
return false;
|
||||
}
|
||||
|
|
@ -511,7 +511,8 @@ namespace TShockAPI
|
|||
return Tools.HandleGriefer(args.Player, TShock.Config.KillMeAbuseReason);
|
||||
}
|
||||
args.Player.LastDeath = DateTime.Now;
|
||||
args.Player.ForceSpawn = true;
|
||||
if (args.Player.Difficulty != 2)
|
||||
args.Player.ForceSpawn = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
|
|||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
|
||||
[assembly: AssemblyVersion("3.2.8.0902")]
|
||||
[assembly: AssemblyFileVersion("3.2.8.0902")]
|
||||
[assembly: AssemblyVersion("3.2.8.0903")]
|
||||
[assembly: AssemblyFileVersion("3.2.8.0903")]
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ namespace TShockAPI
|
|||
public DateTime LastDeath { get; set; }
|
||||
public bool ForceSpawn = false;
|
||||
public string Country = "??";
|
||||
public int Difficulty;
|
||||
|
||||
public bool RealPlayer
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue