gay queue manager?
This commit is contained in:
@ -81,10 +81,6 @@ public class QueueManager {
|
||||
}
|
||||
|
||||
Player opponentPlayer = Bukkit.getPlayer(opponent);
|
||||
|
||||
GameTeam teamA = new GameTeam(player.getUniqueId(), Collections.singletonList(player.getUniqueId()), 0, PlayerTeam.RED);
|
||||
GameTeam teamB = new GameTeam(player.getUniqueId(), Collections.singletonList(opponentPlayer.getUniqueId()), 1, PlayerTeam.LIME);
|
||||
|
||||
Arena arena = this.plugin.getArenaManager().getRandomArena();
|
||||
|
||||
player.sendMessage(" ");
|
||||
@ -101,6 +97,9 @@ public class QueueManager {
|
||||
opponentPlayer.sendMessage(CC.translate("&7⚫ &fGame: &d" + gameType.getName()));
|
||||
opponentPlayer.sendMessage(" ");
|
||||
|
||||
GameTeam teamA = new GameTeam(player.getUniqueId(), Collections.singletonList(player.getUniqueId()), 0, PlayerTeam.RED);
|
||||
GameTeam teamB = new GameTeam(player.getUniqueId(), Collections.singletonList(opponentPlayer.getUniqueId()), 1, PlayerTeam.LIME);
|
||||
|
||||
Game game = new Game(arena, gameType, teamA, teamB);
|
||||
this.plugin.getGameManager().createGame(game);
|
||||
|
||||
@ -108,7 +107,6 @@ public class QueueManager {
|
||||
this.queued.remove(opponentPlayer.getUniqueId());
|
||||
|
||||
this.queueTime.remove(player.getUniqueId());
|
||||
this.queueTime.remove(opponentPlayer.getUniqueId());
|
||||
|
||||
// if (this.getQueueSizeByType(gameType) >= gameType.getQueueAmount()) {
|
||||
//
|
||||
|
Reference in New Issue
Block a user