function _world(worldName) {
  if (__plugin.canary) {
    if (worldName instanceof Packages.net.canarymod.api.world.World) {
      return worldName;
    }
    var worldMgr = Canary.server.worldManager;
    try {
      if (worldName === undefined) {
        var worldNames = worldMgr.getLoadedWorldsNames();
        worldName = worldNames[0];
      }
      return worldMgr.getWorld(worldName, true);
    } catch (error) {
      console.error(
        'utils.world() failed to load ' + worldName + ',Error:' + error
      );
    }
  }
  if (__plugin.bukkit) {
    if (worldName instanceof org.bukkit.World) {
      return worldName;
    }
    if (worldName === undefined) {
      return bkBukkit.getWorlds().get(0);
    }
    return bkBukkit.getWorld(worldName);
  }
  return null;
}
**********************************************************************
### utils.world( worldName ) function

Returns a World object matching the given name
*