diff --git a/src/main/java/top/mpt/xzystudio/flywars/listeners/GameEventListener.java b/src/main/java/top/mpt/xzystudio/flywars/listeners/GameEventListener.java index 68728f7..407c802 100644 --- a/src/main/java/top/mpt/xzystudio/flywars/listeners/GameEventListener.java +++ b/src/main/java/top/mpt/xzystudio/flywars/listeners/GameEventListener.java @@ -56,6 +56,13 @@ public void onTeamEliminated(TeamEliminatedEvent event) { aliveTeam.set(it); } }); + + // TODO EJECT不知道管不管用,同时解散队伍 + p.eject(); + op.eject(); + team.unregTeam(); + + // GameOver if (ifGameOver.get() == 1){ GameOverEvent gameOverEvent = new GameOverEvent(aliveTeam.get()); EventUtils.callEvent(gameOverEvent);