Load world

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Apr 20, 2018
19
0
0
25
Hey, how can I load a world with skript-mirror? Thanks for the help :emoji_grinning:

I tried this:

Bukkit.loadWorld("TheZone" and true)
 
Last edited:
Ehm. I am making a Multiverse in skript. My problem: When the server startet, the world that i have created with my skript don't load.

I tried this:
When I create a world the world will be added:


add world "%{%player%::map}%" to {worlds::*}

And on load:

on load:
loop {worlds::*}:
load world "%loop-value%"
 
you probably should load it the same way as you load it from the start with Bukkit.loadWorld(), but don't forget to import org.bukkit.Bukkit first
 
loadWorld isn't actually a method in the Bukkit class, you need to use createWorld:
Creates or loads a world with the given name using the specified options.
Link 1 / link 2
 
Status
Not open for further replies.