From 5bf12417d51370d3e18b04fb68435a0929757487 Mon Sep 17 00:00:00 2001 From: X_huihui <2519350300@qq.com> Date: Sat, 5 Aug 2023 15:53:51 +0800 Subject: [PATCH] bug fix --- .../top/mpt/huihui/highversionqwq/commands/CheckShenQuan.java | 2 +- .../java/top/mpt/huihui/highversionqwq/events/onPlayerQuit.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/top/mpt/huihui/highversionqwq/commands/CheckShenQuan.java b/src/main/java/top/mpt/huihui/highversionqwq/commands/CheckShenQuan.java index 18a55d3..1ccf85f 100644 --- a/src/main/java/top/mpt/huihui/highversionqwq/commands/CheckShenQuan.java +++ b/src/main/java/top/mpt/huihui/highversionqwq/commands/CheckShenQuan.java @@ -32,7 +32,7 @@ public boolean onCommand(CommandSender commandSender, Command command, String s, teamExecuter.getBluePlayer().teleport(teamExecuter.getRedPlayer()); } if (countRed == 0 && countBlue == 0){ - + ChatUtils.broadcast("#AQUA#没有人是神权狗"); } } return true; diff --git a/src/main/java/top/mpt/huihui/highversionqwq/events/onPlayerQuit.java b/src/main/java/top/mpt/huihui/highversionqwq/events/onPlayerQuit.java index eef35bc..7acbdad 100644 --- a/src/main/java/top/mpt/huihui/highversionqwq/events/onPlayerQuit.java +++ b/src/main/java/top/mpt/huihui/highversionqwq/events/onPlayerQuit.java @@ -30,12 +30,14 @@ public void onPlayerQuitEvent(PlayerQuitEvent event){ , player.getName()); teamExecuter.removeRedPlayer(); teamExecuter.removeBluePlayer(); + GameStart = false; } if (teamExecuter.getBluePlayer().equals(player)){ ChatUtils.broadcast("#BLUE#蓝队#AQUA#玩家: %s 在比赛开始后陶艺了,比赛被迫结束。" , player.getName()); teamExecuter.removeRedPlayer(); teamExecuter.removeBluePlayer(); + GameStart = false; } } }