World gamemode

Discussion in 'Skript' started by BenzyHD, May 23, 2017.

  1. Im looking for a skript that when you enter world "2" you get put into survival when you enter world "Spawn" you get put into adventure mode.

    Can you please help me? :p
    THANKS!
     
  2. You have to use the addon "Skellett" to make this work but this is the easiest i think:
    Code (Text):
    on player world change:
        if the player's world is "2":
            set player's gamemode to survival
        if the player's world is "Spawn":
            set player's gamemode to adventure
     
  3. This may be off topic to the thread, but you can do this a lot more easily by setting the default gamemode for each world in the Multiverse Core config.
     
    • Agree Agree x 2