Aduty und TSupport überarbeitet

This commit is contained in:
Mac_Slash
2020-04-26 22:06:24 +02:00
parent 970c35767c
commit 91e97fea20
8 changed files with 29 additions and 24 deletions

View File

@@ -38,7 +38,7 @@ namespace ReallifeGamemode.Server.Events
}
else if (sV is FactionVehicle fV)
{
if (!fV.GetOwners().Contains(u.FactionId ?? 0) && !state && !(u.IsAdmin(AdminLevel.HEADADMIN) && GlobalHelper.DutyAdmins.Contains(player)))
if (!fV.GetOwners().Contains(u.FactionId ?? 0) && !state && !(u.IsAdmin(AdminLevel.HEADADMIN) && player.IsAdminDuty()))
{
player.SendNotification("~r~Du hast keinen Schlüssel.");
return;