creative to players when they join a specific 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.

Gage Ferranti

New Member
Oct 15, 2020
7
0
1
24
i don't know how to script, can anybody make me a script that gives creative to players when they join a specific world. (making a creative world for my server)
 
This should work.
Code:
on world change:
    if player's world is "world":
        set player's gamemode to creative
    else:
        set player's gamemode to survival
 
This should work.
Code:
on world change:
    if player's world is "world":
        set player's gamemode to creative
    else:
        set player's gamemode to survival
i didnt work, i made sure i put it in the scripts file correctly with the world name. if this helps im using multiverse for my worlds
 
Im not sure why it dont work.

i have just tested it and it works for me.

i tested it with:

Skript 2.4.1
no addons
Paper 1.15.2

Which Skript version are you using and which addons have you installed?
 
Im not sure why it dont work.

i have just tested it and it works for me.

i tested it with:

Skript 2.4.1
no addons
Paper 1.15.2

Which Skript version are you using and which addons have you installed?
i didnt know what addons to install so i installed all of them :/. should i remove some or all?
 
i dont know why the other one dosent work for you. it worked for me testing on paper 1.16.2 and skript 2.5, no addons
but try this:
Code:
options:
    creativeworld: world

on world change:
    set {changedworld.%player%} to true
    
on step:
    if {changedworld.%player%} is true:
        if player world is "{@creativeworld}":
            send "Welcome to creative world"
            set player's gamemode to creative
            delete {changedworld.%player%}
 
i dont know why the other one dosent work for you. it worked for me testing on paper 1.16.2 and skript 2.5, no addons
but try this:
Code:
options:
    creativeworld: world

on world change:
    set {changedworld.%player%} to true
   
on step:
    if {changedworld.%player%} is true:
        if player world is "{@creativeworld}":
            send "Welcome to creative world"
            set player's gamemode to creative
            delete {changedworld.%player%}
options:
creativeworld: creative

on world change:
set {changedworld.%player%} to true

on step:
if {changedworld.%player%} is true:
if player world is "{@creativeworld}":
send "Welcome to creative world"
set player's gamemode to creative
delete {changedworld.%player%}

that is what i put in the "creative.sk" file. the worlds name is "creative" btw
[doublepost=1603224602,1603224568][/doublepost]
options:
creativeworld: creative

on world change:
set {changedworld.%player%} to true

on step:
if {changedworld.%player%} is true:
if player world is "{@creativeworld}":
send "Welcome to creative world"
set player's gamemode to creative
delete {changedworld.%player%}

that is what i put in the "creative.sk" file. the worlds name is "creative" btw

and it still didnt work
[doublepost=1603224805][/doublepost]it says it reloaded my scripts with a total of 0 triggers and 0 commands
 
Code:
on world change:
    if player's world is "world":
        set player's gamemode to creative
    else:
        set player's gamemode to survival

on join:
    if player's world is "world":
        set player's gamemode to creative
    else:
        set player's gamemode to survival
 
Code:
on world change:
    if player's world is "world":
        set player's gamemode to creative
    else:
        set player's gamemode to survival

on join:
    if player's world is "world":
        set player's gamemode to creative
    else:
        set player's gamemode to survival
didn't work, the only thing it did was keep game mode in different worlds, when im in world "hub" and i warp to a different world, it automatically changes my game mode to survival. when i put this script in, it keeps my game mode in different worlds
[doublepost=1603383736,1603381542][/doublepost]
didn't work, the only thing it did was keep game mode in different worlds, when im in world "hub" and i warp to a different world, it automatically changes my game mode to survival. when i put this script in, it keeps my game mode in different worlds
ok so figured it out in the worlds.yml in multiverse plugin files. not sure why i didnt think about this before. i set the worlds gamemode to "creative" then i did /mv set gamemode creative while in the world
 
didn't work, the only thing it did was keep game mode in different worlds, when im in world "hub" and i warp to a different world, it automatically changes my game mode to survival. when i put this script in, it keeps my game mode in different worlds
[doublepost=1603383736,1603381542][/doublepost]
ok so figured it out in the worlds.yml in multiverse plugin files. not sure why i didnt think about this before. i set the worlds gamemode to "creative" then i did /mv set gamemode creative while in the world
Yeah, I was going to say that before I read the message
 
Status
Not open for further replies.