a way to check if world is loaded/created?

Discussion in 'Plugin Development' started by ZderKi, Jul 19, 2019.

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

    ZderKi

    Okay so im coding this plugin that creates a world through the WorldCreator and teleports all players on the server to the world... but how can i check if the server is done creating the world so i can tp the players?

    Sorry for my bad english .-.
     
  2. Offline

    Tango_

    Perhaps check if the world is not null

    if (Bukkit.getWorld(world) != null) {

    }

    If that doesn't work, then you may have to check if 'level.dat' exists inside the worlds contents
     
    Last edited: Jul 19, 2019
Thread Status:
Not open for further replies.

Share This Page