public void join(Player p, String name) { if (createRoom(p, name)) { for (Room r : clanRooms) { if (r.getName().equalsIgnoreCase(name)) { r.join(p); } } } }
public void joinPlayer(Player p, String name) { if (Misc.player(name) != null) { Player o = Misc.player(name); if (o.clanRoom.length() > 0) { for (Room r : clanRooms) { if (r.getName().equalsIgnoreCase(o.clanRoom)) { r.join(p); } } } } }