Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuihui1022 committed Aug 5, 2023
1 parent 627ed32 commit 5bf1241
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 5bf1241

Please sign in to comment.