Ban/kick on death if HardcoreOnly == true
This commit is contained in:
parent
d620493d7b
commit
1e66e1a256
5 changed files with 38 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ namespace TShockAPI
|
|||
public DateTime LastPvpChange { get; protected set; }
|
||||
public Rectangle TempArea = new Rectangle();
|
||||
public DateTime LastExplosive { get; set; }
|
||||
public bool InitSpawn = false;
|
||||
|
||||
public bool RealPlayer
|
||||
{
|
||||
|
|
@ -135,6 +136,7 @@ namespace TShockAPI
|
|||
|
||||
public bool Teleport(int tileX, int tileY)
|
||||
{
|
||||
this.InitSpawn = false;
|
||||
int spawnTileX = Main.spawnTileX;
|
||||
int spawnTileY = Main.spawnTileY;
|
||||
Main.spawnTileX = tileX;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue