Looking for world loading help

Discussion in 'Plugin Development' started by Snipey, Aug 9, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Snipey

    So I have a voting system for a plugin I'm working on and after the voting is finished a world folder gets copied from a specified folder. The problem I'm running into is getting when that world has finished loading so I can run my game start countdown and teleport my players to that world.
     
  2. Offline

    chasechocolate

    Create a new folder for the world (new File("new-world").mkdirs()), and use the file copying method top copy it from a specific folder.
     
  3. Offline

    Snipey

    chasechocolate Yeah i did that. Im stuck on figuring out how to load said world and detect when it is finished loading, so i can teleport all the players in the game to that worlds start point.
     
  4. Offline

    chasechocolate

    Normally creating a world using WorldCreators would lag the server until the world gets created, so you could just teleport them after creating the world. I'm not exactly sure how copying files will work, give it a try.
     
  5. Offline

    Snipey

    I was going to do it with premade worlds with one server being the game instance instead of multiple arenas on one server.
     
Thread Status:
Not open for further replies.

Share This Page