Creating a new map & Schematic import

Discussion in 'Spigot Plugin Development' started by anakinsky249, May 6, 2017.

  1. Hey, I'm creating a plugin FOR MY SERVER so I know what I have on it. I want to check if a map exists and if not, create it. Don't tell me to use multiverse, I know I don't need to. Say using /gotomap teleports the user to that map and /spawn brings it back to real map. Also, how can I place a schematic in a certain place, in comparison to the last one ? Example, the first schematic for player X is at '0,0'. The second player will have it at '0,400'. The third, '400,0'. The fourth, '400,400'. In a kind of grid panel.

    Thanks
     
  2. BananaPuncher714

    Supporter

    If you want to test for a world you can use Bukkit.getWorld( name ) and test to see if it's null. If it is, you can create a new world with Bukkit.createWorld( name )
     
  3. Any way I could create the world from a specific file ? Or create it superflat ? Or void world ?
     
  4. BananaPuncher714

    Supporter

    I'm not sure how to load a world, but you can create a World generator and configure the options to use the superflat setting and then create it.