diff --git a/Server/Commands/Admin.cs b/Server/Commands/Admin.cs index 1a16b7b8..6c88e92b 100644 --- a/Server/Commands/Admin.cs +++ b/Server/Commands/Admin.cs @@ -104,6 +104,8 @@ namespace reallife_gamemode.Server.Commands ChatService.PlayerNotFound(player); return; } + + player.Position = target.Position; } [Command("gotoxyz", "~m~Benutzung: ~s~/gotoxyz [X] [Y] [Z]")] @@ -118,6 +120,26 @@ namespace reallife_gamemode.Server.Commands player.Position = new Vector3(x, y, z); } + [Command("gethere", "~m~Benutzung: ~s~/goto [Name]")] + public void CmdAdminGethere(Client player, string name) + { + if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) + { + ChatService.NotAuthorized(player); + return; + } + + Client target = ClientService.GetClientByName(name); + + if (target == null) + { + ChatService.PlayerNotFound(player); + return; + } + + target.Position = player.Position; + } + [Command("ipl", "~m~Benutzung: ~s~/ipl [Load / Remove] [Name]")] public void CmdAdminIpl(Client player, string option, string name) {