Add Console Info For Bans and Kicks
This commit is contained in:
parent
01e6f32734
commit
ecb57f15c9
1 changed files with 2 additions and 2 deletions
|
|
@ -372,7 +372,7 @@ namespace TShockAPI
|
|||
{
|
||||
string playerName = player.Name;
|
||||
player.Disconnect(string.Format("Kicked: {0}", reason));
|
||||
Log.Info(string.Format("Kicked {0} for : {1}", playerName, reason));
|
||||
Log.ConsoleInfo(string.Format("Kicked {0} for : {1}", playerName, reason));
|
||||
if (adminUserName.Length == 0)
|
||||
Broadcast(string.Format("{0} was kicked for {1}", playerName, reason.ToLower()));
|
||||
else
|
||||
|
|
@ -397,7 +397,7 @@ namespace TShockAPI
|
|||
string playerName = player.Name;
|
||||
TShock.Bans.AddBan(ip, playerName, reason);
|
||||
player.Disconnect(string.Format("Banned: {0}", reason));
|
||||
Log.Info(string.Format("Banned {0} for : {1}", playerName, reason));
|
||||
Log.ConsoleInfo(string.Format("Banned {0} for : {1}", playerName, reason));
|
||||
if (adminUserName.Length == 0)
|
||||
Broadcast(string.Format("{0} was banned for {1}", playerName, reason.ToLower()));
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue