Esempio n. 1
0
 public Arena getArena(Player player) {
   for (Arena arena : arenas) {
     for (Plot plot : arena.getPlots()) {
       if (plot.getPlayerData() != null) {
         if (plot.getPlayerData().getPlayer() == player) {
           return arena;
         }
       }
     }
   }
   return null;
 }
Esempio n. 2
0
 public Arena getArena(String name) {
   for (Arena arena : arenas) {
     if (arena.getName().equals(name)) return arena;
   }
   return null;
 }