static void DoUnban(ModAction e) { Player who = PlayerInfo.FindExact(e.Target); LogAction(e, who, "&8unbanned"); if (Server.tempBans.Remove(e.Target)) { Server.tempBans.Save(); } if (!Group.BannedRank.Players.Contains(e.Target)) { return; } Ban.DeleteUnban(e.Target); Ban.UnbanPlayer(e.Actor, e.Target, e.Reason); ModActionCmd.ChangeRank(e.Target, Group.BannedRank, Group.DefaultRank, who, false); string ip = PlayerDB.FindIP(e.Target); if (ip != null && Server.bannedIP.Contains(ip)) { e.Actor.Message("NOTE: Their IP is still banned."); } }