fix vlt fehler bei /revive
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user