Пример #1
0
 public boolean loadServerWorldsList() {
   sendDebugMsg("Loading Server World List");
   for (World world : plugin.getServer().getWorlds())
     try {
       // String[] split = world.getName().split("/");
       // String worldName = split[split.length-1];
       // universe.newWorld(worldName);
       universe.newWorld(world.getName());
     } catch (AlreadyRegisteredException e) {
       e.printStackTrace();
     } catch (NotRegisteredException e) {
       e.printStackTrace();
     }
   return true;
 }