1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Various fixes and renamed 'libary' to 'library'

This commit is contained in:
RaidMax
2015-08-27 23:39:36 -05:00
parent c23e578319
commit 995334796e
31 changed files with 146 additions and 129 deletions

View File

@ -347,17 +347,17 @@ namespace Webfront_Plugin
npIDs.Add(B.npID);
Player[] bannedPlayers = S.clientDB.getPlayers(npIDs).ToArray();
List<Player> bannedPlayers = S.clientDB.getPlayers(npIDs);
for (int i = 0; i < Bans.Count-1; i++)
{
if (Bans[i] == null)
continue;
Player P = bannedPlayers[i];
Player P = bannedPlayers.Where(x => x.npID == Bans[i].npID).First();
Player B;
if (P.npID == Bans[i].bannedByID)
if (P.npID == Bans[i].bannedByID || Bans[i].bannedByID == "")
B = new Player("IW4MAdmin", "", 0, SharedLibrary.Player.Permission.Banned, 0, "", 0, "");
else