From fe0d909bb16908381876dc7793480427f659f106 Mon Sep 17 00:00:00 2001 From: VegaZ Date: Wed, 5 May 2021 00:10:01 +0200 Subject: [PATCH] Fix Spec 3 --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 994c1c02..8d60b90a 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -1797,7 +1797,7 @@ namespace ReallifeGamemode.Server.Commands } Player target; - bool currentStatus = user.GetData("adminUnshow"); + bool currentStatus = player.GetData("adminUnshow"); if (targetname != null) { @@ -1817,7 +1817,7 @@ namespace ReallifeGamemode.Server.Commands if (!currentStatus) { currentStatus = !currentStatus; - user.SetData("adminUnshow", currentStatus); + player.SetData("adminUnshow", currentStatus); } player.TriggerEvent("toggleAdminUnshowMode", currentStatus); player.SetData("specPosition", player.Position);