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

@ -475,7 +475,7 @@ namespace TShockAPI
{
// A user just signed in successfully despite being banned by account name.
// We should fix the ban database so that all of their ban info is up to date.
Bans.AddBan2(args.Player.IP, args.Player.Name, args.Player.UUID, args.Player.Account.Name,
Bans.AddBan(args.Player.IP, args.Player.Name, args.Player.UUID, args.Player.Account.Name,
potentialBan.Reason, false, potentialBan.BanningUser, potentialBan.Expiration);
// And then get rid of them.