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; }
public Arena getArena(String name) { for (Arena arena : arenas) { if (arena.getName().equals(name)) return arena; } return null; }