Add /ban help
This commit is contained in:
parent
ebc36a5ada
commit
9c2ee33784
2 changed files with 30 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue