Migrate AddBan2 calls to AddBan
No more deprecation warnings on this release #yolo
This commit is contained in:
parent
5362389e71
commit
903bd5bb75
5 changed files with 8 additions and 25 deletions
|
|
@ -651,7 +651,7 @@ namespace TShockAPI
|
|||
string ip = player.IP;
|
||||
string uuid = player.UUID;
|
||||
string playerName = player.Name;
|
||||
TShock.Bans.AddBan2(ip, playerName, uuid, "", reason, false, adminUserName);
|
||||
TShock.Bans.AddBan(ip, playerName, uuid, "", reason, false, adminUserName);
|
||||
player.Disconnect(string.Format("Banned: {0}", reason));
|
||||
string verb = force ? "force " : "";
|
||||
if (string.IsNullOrWhiteSpace(adminUserName))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue