fix vlt fehler bei /revive

This commit is contained in:
hydrant
2020-05-08 15:36:44 +02:00
parent 653c54a1c7
commit 0447f96c9e

View File

@@ -63,6 +63,11 @@ namespace ReallifeGamemode.Server.Extensions
/// <returns></returns> /// <returns></returns>
public static bool IsLoggedIn(this Player player) public static bool IsLoggedIn(this Player player)
{ {
if (player == null)
{
return false;
}
return player.HasData("isLoggedIn") ? player.GetData<bool>("isLoggedIn") : false; return player.HasData("isLoggedIn") ? player.GetData<bool>("isLoggedIn") : false;
} }