From 10821c7c63947ef6ce71c8f106a381aecd075c8f Mon Sep 17 00:00:00 2001 From: Bonjemus <59416055+Bonjemus@users.noreply.github.com> Date: Sun, 8 Jan 2023 21:55:54 +0100 Subject: [PATCH] 1.1.0 --- CustomDoors/PositionCommand.cs | 37 ---------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 CustomDoors/PositionCommand.cs diff --git a/CustomDoors/PositionCommand.cs b/CustomDoors/PositionCommand.cs deleted file mode 100644 index e6b6169..0000000 --- a/CustomDoors/PositionCommand.cs +++ /dev/null @@ -1,37 +0,0 @@ -using CommandSystem; -using MapGeneration; -using PluginAPI.Core; -using System; - -namespace CustomDoors -{ - [CommandHandler(typeof(RemoteAdminCommandHandler))] - public class PositionCommand : ICommand - { - public string Command { get; } = "Position"; - - public string[] Aliases { get; } = new string[] { }; - - public string Description { get; } = "Gives you your position."; - - public bool Execute(ArraySegment arguments, ICommandSender sender, out string response) - { - Player player = Player.Get(((CommandSender)sender).SenderId); - RoomIdentifier room = player.Room; - - - /*if (RoomIdentifier.RoomsByCoordinates.TryGetValue(new Vector3Int(Mathf.RoundToInt(player.Position.x / RoomIdentifier.GridScale.x), Mathf.RoundToInt(player.Position.y / 100f), Mathf.RoundToInt(player.Position.z / RoomIdentifier.GridScale.x)), out var value)) - room = value; - else - room = RoomIdentifier.RoomsByCoordinates.Values.OrderBy(r => Vector3.Distance(r.transform.position, player.Position)).FirstOrDefault();*/ - - - - response = $"{room.name} :\nRoom position : {room.transform.position}\nRoom rotation : {room.transform.rotation.eulerAngles}\nYour position : {player.Position}\nRelative position to room :\nx = {(player.Position - room.transform.position).x}\ny = {(player.Position - room.transform.position).y}\nz = {(player.Position - room.transform.position).z}"; - - if (PluginClass.Singleton.config.DebugCommand) - Log.Debug(response); - return true; - } - } -} \ No newline at end of file