Added broadcast for /ban. (thanks rjhazelwood)
Changed broadcast for /kick as it now takes partial matches.
This commit is contained in:
parent
8d375506b4
commit
5b655f00de
1 changed files with 2 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ namespace TShockAPI
|
|||
if (!TShock.players[Tools.FindPlayer(plStr)].IsAdmin())
|
||||
{
|
||||
Tools.Kick(Tools.FindPlayer(plStr), "You were kicked.");
|
||||
Tools.Broadcast(plStr + " was kicked by " + Tools.FindPlayer(ply));
|
||||
Tools.Broadcast(Tools.FindPlayer(Tools.FindPlayer(plStr)) + " was kicked by " + Tools.FindPlayer(ply));
|
||||
}
|
||||
else
|
||||
Tools.SendMessage(ply, "You can't kick another admin!", new float[] { 255f, 0f, 0f });
|
||||
|
|
@ -126,6 +126,7 @@ namespace TShockAPI
|
|||
{
|
||||
FileTools.WriteBan(Tools.FindPlayer(plStr));
|
||||
Tools.Kick(Tools.FindPlayer(plStr), "You were banned.");
|
||||
Tools.Broadcast(Tools.FindPlayer(ply) + " banned " + Tools.FindPlayer(Tools.FindPlayer(plStr)) + "!");
|
||||
}
|
||||
else
|
||||
Tools.SendMessage(ply, "You can't ban another admin!", new float[] { 255f, 0f, 0f });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue