diff --git a/src/main/java/rip/tilly/bedwars/managers/queue/QueueManager.java b/src/main/java/rip/tilly/bedwars/managers/queue/QueueManager.java index 16fb9eb..cba370e 100644 --- a/src/main/java/rip/tilly/bedwars/managers/queue/QueueManager.java +++ b/src/main/java/rip/tilly/bedwars/managers/queue/QueueManager.java @@ -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()) { // diff --git a/src/main/java/rip/tilly/bedwars/providers/scoreboard/ScoreboardProvider.java b/src/main/java/rip/tilly/bedwars/providers/scoreboard/ScoreboardProvider.java index 25afb5d..fc4f02e 100644 --- a/src/main/java/rip/tilly/bedwars/providers/scoreboard/ScoreboardProvider.java +++ b/src/main/java/rip/tilly/bedwars/providers/scoreboard/ScoreboardProvider.java @@ -75,8 +75,8 @@ public class ScoreboardProvider implements AssembleAdapter { } lines.add("&fOnline: &d" + this.main.getServer().getOnlinePlayers().size()); - lines.add("&fPlaying: &d" + this.main.getGameManager().getPlaying()); lines.add("&fQueueing: &d" + this.main.getQueueManager().getAllQueueSize()); + lines.add("&fPlaying: &d" + this.main.getGameManager().getPlaying()); lines.add(" "); @@ -115,18 +115,18 @@ public class ScoreboardProvider implements AssembleAdapter { lines.add("&fDuration: &d" + game.getDuration()); lines.add(" "); if (yourTeam.isHasBed()) { - lines.add("&7" + yourTeam.getPlayerTeam().getChatColor() + yourTeam.getPlayerTeam().getSmallName() + "&7] &a&l✓ &7(You)"); + lines.add("&7[" + yourTeam.getPlayerTeam().getChatColor() + yourTeam.getPlayerTeam().getSmallName() + "&7] &a&l✓ &7(You)"); } else if (yourTeam.getPlayingPlayers().size() > 0) { - lines.add("&7" + yourTeam.getPlayerTeam().getChatColor() + yourTeam.getPlayerTeam().getSmallName() + "&7] &f" + yourTeam.getPlayingPlayers().size() + " &7(YOU)"); + lines.add("&7[" + yourTeam.getPlayerTeam().getChatColor() + yourTeam.getPlayerTeam().getSmallName() + "&7] &f" + yourTeam.getPlayingPlayers().size() + " &7(YOU)"); } else { - lines.add("&7" + yourTeam.getPlayerTeam().getChatColor() + yourTeam.getPlayerTeam().getSmallName() + "&7] &c&l✗ &7(You)"); + lines.add("&7[" + yourTeam.getPlayerTeam().getChatColor() + yourTeam.getPlayerTeam().getSmallName() + "&7] &c&l✗ &7(You)"); } if (opposingTeam.isHasBed()) { - lines.add("&7" + opposingTeam.getPlayerTeam().getChatColor() + opposingTeam.getPlayerTeam().getSmallName() + "&7] &a&l✓"); + lines.add("&7[" + opposingTeam.getPlayerTeam().getChatColor() + opposingTeam.getPlayerTeam().getSmallName() + "&7] &a&l✓"); } else if (opposingTeam.getPlayingPlayers().size() > 0) { - lines.add("&7" + opposingTeam.getPlayerTeam().getChatColor() + opposingTeam.getPlayerTeam().getSmallName() + "&7] &f" + yourTeam.getPlayingPlayers().size()); + lines.add("&7[" + opposingTeam.getPlayerTeam().getChatColor() + opposingTeam.getPlayerTeam().getSmallName() + "&7] &f" + yourTeam.getPlayingPlayers().size()); } else { - lines.add("&7" + opposingTeam.getPlayerTeam().getChatColor() + opposingTeam.getPlayerTeam().getSmallName() + "&7] &c&l✗"); + lines.add("&7[" + opposingTeam.getPlayerTeam().getChatColor() + opposingTeam.getPlayerTeam().getSmallName() + "&7] &c&l✗"); } lines.add(" "); lines.add("&fKills: &d" + playerData.getGameKills());