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);