diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 85aba9b5..4f5bc0a9 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -35,7 +35,7 @@ namespace ReallifeGamemode.Server.Commands #region Todo [Command("cuff", "~m~Benutzung: ~s~/cuff [ID]")] - public void CmdSncAnim(Player player, string nameOrId) + public void CmdCuffTest(Player player, string nameOrId) { if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) { @@ -47,9 +47,9 @@ namespace ReallifeGamemode.Server.Commands return; float rad = player.Heading * MathF.PI / 180; - Vector3 forward = new Vector3(player.Position.X + (1.2 * MathF.Sin(rad)), player.Position.Y + (1.2 * MathF.Cos(rad)), player.Position.Z); + Vector3 forwardV3 = new Vector3(player.Position.X + (1.2 * MathF.Sin(rad)), player.Position.Y + (1.2 * MathF.Cos(rad)), player.Position.Z); - target.Position = forward; + target.Position = forwardV3; if (!target.HasAnimation("Cuffed")) { @@ -64,7 +64,7 @@ namespace ReallifeGamemode.Server.Commands } [Command("syncanim", "~m~Benutzung: ~s~/syncanim [animName]")] - public void CmdSncAnim(Player player, string animName = null) + public void CmdSyncAnim(Player player, string animName = null) { if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) {