Add reasons to all Disable() usages

This commit is contained in:
Deathmax 2012-01-14 10:40:06 +08:00
parent 7ab577282e
commit 71117ae0b5
3 changed files with 23 additions and 27 deletions

View file

@ -484,7 +484,7 @@ namespace TShockAPI
{
if (player.TileKillThreshold >= Config.TileKillThreshold)
{
player.Disable();
player.Disable("Reached TileKill threshold");
TSPlayer.Server.RevertTiles(player.TilesDestroyed);
player.TilesDestroyed.Clear();
}
@ -497,7 +497,7 @@ namespace TShockAPI
{
if (player.TilePlaceThreshold >= Config.TilePlaceThreshold)
{
player.Disable();
player.Disable("Reached TilePlace threshold");
TSPlayer.Server.RevertTiles(player.TilesCreated);
player.TilesCreated.Clear();
}
@ -508,7 +508,7 @@ namespace TShockAPI
}
if (player.TileLiquidThreshold >= Config.TileLiquidThreshold)
{
player.Disable();
player.Disable("Reached TileLiquid threshold");
}
if (player.TileLiquidThreshold > 0)
{
@ -516,7 +516,7 @@ namespace TShockAPI
}
if (player.ProjectileThreshold >= Config.ProjectileThreshold)
{
player.Disable();
player.Disable("Reached Projectile threshold");
}
if (player.ProjectileThreshold > 0)
{