diff --git a/src/main/java/me/Demon/BungeeWarpPro/atp/AtpCommand.java b/src/main/java/me/Demon/BungeeWarpPro/atp/AtpCommand.java index a4ea329..b924015 100644 --- a/src/main/java/me/Demon/BungeeWarpPro/atp/AtpCommand.java +++ b/src/main/java/me/Demon/BungeeWarpPro/atp/AtpCommand.java @@ -48,7 +48,7 @@ public class AtpCommand extends Command implements TabExecutor { } else { String server_name = player1.getServer().getInfo().getName(); System.out.print("目标所在区服: " + server_name); - if (server_name.contains("chkdsc")) { + if (server_name.contains("sky")) { tpa(player, player1, player1.getServer().getInfo()); } else { player.sendMessage(new TextComponent("§8§l[§c§l!§8§l] §7未在战争领域服务器中找到 §a" + target)); @@ -71,7 +71,7 @@ public class AtpCommand extends Command implements TabExecutor { return; } player.sendMessage(new TextComponent("§8§l[§e§l!§8§l] §7你接受了 §6" + player1.getName() + " §7的传送请求")); - TpaUtil.sendAcceptMessage(player1, player1); + TpaUtil.sendAcceptMessage(player1, player); tpaMap.remove(player1); playerMap.remove(player); ServerInfo serverInfo = player.getServer().getInfo();