测试版

This commit is contained in:
tianyu 2024-07-24 21:18:23 +08:00
parent 888fa18418
commit d7a7a83d28

View File

@ -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();