/ban now accepts a reason
/ban announces said reason
This commit is contained in:
parent
ab03cf174d
commit
866f63ea59
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ namespace TShockAPI
|
|||
{
|
||||
TShock.Bans.AddBan(Tools.GetPlayerIP(player), Main.player[player].name);
|
||||
Tools.Kick(player, "You were banned.");
|
||||
Tools.Broadcast(Tools.FindPlayer(adminplr) + " banned " + Tools.FindPlayer(player) + "!");
|
||||
Tools.Broadcast(Tools.FindPlayer(adminplr) + " banned " + Tools.FindPlayer(player) + " with reason " + reason + "!");
|
||||
}
|
||||
else
|
||||
Tools.SendMessage(adminplr, "You can't ban another admin!", new[] {255f, 0f, 0f});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue