Add /ban help

This commit is contained in:
MarioE 2013-11-10 23:19:27 -05:00
parent ebc36a5ada
commit 9c2ee33784
2 changed files with 30 additions and 11 deletions

View file

@ -951,7 +951,7 @@ namespace TShockAPI
{
DateTime exp;
string duration = DateTime.TryParse(ban.Expiration, out exp) ? String.Format("until {0}", exp.ToString("G")) : "forever";
Utils.ForceKick(player, string.Format("You are banned {0}: {1}", duration, ban.Reason), true, false);
player.Disconnect(String.Format("Banned {0}: {1}", duration, ban.Reason));
args.Handled = true;
}
}