Fix unban
Fix DisableBeforeJoin when server has a password.
This commit is contained in:
parent
50d9cb602d
commit
08d06c023e
2 changed files with 2 additions and 2 deletions
|
|
@ -879,7 +879,7 @@ namespace TShockAPI
|
|||
var ban = TShock.Bans.GetBanByName(plStr);
|
||||
if (ban != null)
|
||||
{
|
||||
if (TShock.Bans.RemoveBan(ban.IP, true))
|
||||
if (TShock.Bans.RemoveBan(ban.Name, true))
|
||||
args.Player.SendMessage(string.Format("Unbanned {0} ({1})!", ban.Name, ban.IP), Color.Red);
|
||||
else
|
||||
args.Player.SendMessage(string.Format("Failed to unban {0} ({1})!", ban.Name, ban.IP), Color.Red);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue