@Override public GlowWorld getWorld(UUID uid) { for (GlowWorld world : worlds.getWorlds()) { if (uid.equals(world.getUID())) { return world; } } return null; }
/** * Gets the world from the given Unique ID * * @param uid Unique ID of the world to retrieve. * @return World with the given Unique ID, or null if none exists. */ public GlowWorld getWorld(UUID uid) { for (GlowWorld world : worlds) { if (uid.equals(world.getUID())) return world; } return null; }