Customize the time in between death and respawn.
This commit is contained in:
parent
01388a5948
commit
25ca94a77e
2 changed files with 3 additions and 1 deletions
|
|
@ -715,7 +715,7 @@ namespace TShockAPI
|
|||
{
|
||||
player.ProjectileThreshold = 0;
|
||||
}
|
||||
if (player.Dead && (DateTime.Now - player.LastDeath).Seconds >= 3 && player.Difficulty != 2)
|
||||
if (player.Dead && (DateTime.Now - player.LastDeath).Seconds >= Config.RespawnSeconds && player.Difficulty != 2)
|
||||
{
|
||||
player.Spawn();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue