Merge branch 'master' of github.com:TShock/TShock
This commit is contained in:
commit
3bbbafc94d
3 changed files with 11 additions and 6 deletions
|
|
@ -843,8 +843,11 @@ namespace TShockAPI
|
|||
|
||||
public static void Ban(int plr, string reason = "")
|
||||
{
|
||||
Tools.Kick(plr, reason);
|
||||
Bans.AddBan(Tools.GetPlayerIP(plr), Main.player[plr].name, reason);
|
||||
if (!players[plr].group.HasPermission("immunetoban"))
|
||||
{
|
||||
Tools.Kick(plr,"Banned: " + reason);
|
||||
Bans.AddBan(Tools.GetPlayerIP(plr), Main.player[plr].name, reason);
|
||||
}
|
||||
}
|
||||
|
||||
public class Position
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue