Migrate AddBan2 calls to AddBan

No more deprecation warnings on this release #yolo
This commit is contained in:
Lucas Nicodemus 2017-12-26 20:05:52 -07:00
parent 5362389e71
commit 903bd5bb75
5 changed files with 8 additions and 25 deletions

View file

@ -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))