From a0570fb0b42bc97b46e85c2902ee4a7dfdff684b Mon Sep 17 00:00:00 2001 From: kookroach <62265045+kookroach@users.noreply.github.com> Date: Sat, 3 Apr 2021 22:05:26 +0200 Subject: [PATCH] fix NoClip --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 2cfc2aa0..49212db0 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -3654,11 +3654,12 @@ namespace ReallifeGamemode.Server.Commands [RemoteEvent("Noclip")] public void Noclip(Player player) { - if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true && player.HasData("Adminduty") && !player.GetData("Adminduty")) + if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true) { return; } - player.TriggerEvent("ADMIN:NoClip"); + if(player.HasData("Adminduty") && player.GetData("Adminduty")) + player.TriggerEvent("ADMIN:NoClip"); } }