Browse Source

arena que messages

lakebane-optimize
FatBoy-DOTC 2 weeks ago
parent
commit
9f51b9af57
  1. 10
      src/engine/gameManager/ArenaManager.java

10
src/engine/gameManager/ArenaManager.java

@ -49,10 +49,20 @@ public class ArenaManager {
if (!playerQueue.contains(player)) { if (!playerQueue.contains(player)) {
playerQueue.add(player); playerQueue.add(player);
} }
for(PlayerCharacter pc : playerQueue){
if(pc.equals(player))
continue;
ChatManager.chatSystemInfo(pc, player.getName() + " has joined the arena que. There are now " + playerQueue.size() + " players queued.");
}
} }
public static void leaveQueue(PlayerCharacter player) { public static void leaveQueue(PlayerCharacter player) {
playerQueue.remove(player); playerQueue.remove(player);
for(PlayerCharacter pc : playerQueue){
if(pc.equals(player))
continue;
ChatManager.chatSystemInfo(pc, player.getName() + " has left the arena que. There are now " + playerQueue.size() + " players queued.");
}
} }
private static void createArena() { private static void createArena() {

Loading…
Cancel
Save