This commit is contained in:
2019-09-02 19:32:05 +02:00
parent e9eac2e94b
commit f29bd12757
14 changed files with 410 additions and 8 deletions

View File

@@ -22,7 +22,8 @@ namespace ReallifeGamemode.Server.Events
player.SetData("isLoggedIn", false);
player.Position = new Vector3(-1883.736, -781.4911, -10);
player.FreezePosition = true;
using (var dbContext = new DatabaseContext())
{
if (!dbContext.WhitelistEntries.Any(w => w.SocialClubName.ToLower() == player.SocialClubName.ToLower()))
@@ -38,6 +39,7 @@ namespace ReallifeGamemode.Server.Events
return;
}
}
if (IsPlayerBanned(player)) return;
player.TriggerEvent("SERVER:Login_ShowBrowser");
@@ -88,4 +90,4 @@ namespace ReallifeGamemode.Server.Events
}
}
}
}
}