From 732ad43e231fe361bdfa00556f937d5cdca34b68 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 27 Jun 2022 15:25:06 +0200 Subject: [PATCH] Fix TpCommand for teamserver --- src/de/steamwar/bungeecore/commands/TpCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/TpCommand.java b/src/de/steamwar/bungeecore/commands/TpCommand.java index d2e7a1f..f13d37b 100644 --- a/src/de/steamwar/bungeecore/commands/TpCommand.java +++ b/src/de/steamwar/bungeecore/commands/TpCommand.java @@ -58,8 +58,9 @@ public class TpCommand extends BasicCommand { ChatSender.of(player).system("JOINME_PLAYER_OFFLINE"); return; } + ServerInfo teamServer = Storage.teamServers.get(sender.user().getTeam()); //Give control of teleport command to server - if (server == player.getServer().getInfo()) { + if (server == player.getServer().getInfo() || server == teamServer) { Chat19.chat(player, "/tp " + String.join(" ", args)); return; }