Beispiel #1
0
 public void join(Player p, String name) {
   if (createRoom(p, name)) {
     for (Room r : clanRooms) {
       if (r.getName().equalsIgnoreCase(name)) {
         r.join(p);
       }
     }
   }
 }
Beispiel #2
0
 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);
         }
       }
     }
   }
 }