Ban/kick on death if HardcoreOnly == true

This commit is contained in:
Deathmax 2011-06-24 20:03:19 +08:00
parent d620493d7b
commit 1e66e1a256
5 changed files with 38 additions and 0 deletions

View file

@ -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;