Try AdminDuty 4
This commit is contained in:
@@ -72,8 +72,7 @@ namespace ReallifeGamemode.Server.Extensions
|
||||
}
|
||||
public static bool IsAdminDuty(this Player player)
|
||||
{
|
||||
var user = player.GetUser();
|
||||
return user.GetData<bool>("duty");
|
||||
return player.HasData("Adminduty") ? player.GetData<bool>("Adminduty") : false;
|
||||
}
|
||||
public static Vector3 GetPositionFromPlayer(Player player, float distance, int offset = 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user