Solved Per world commands

  • 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.
Hello I want to create per world commands, Can someone help Me?
I got you fam
Code:
command /jellybeans:
  trigger:
    if player's world is not "build":
      send "You cannot eat jelly beans buddy, sorry... Maybe go to the build world !!"
      wait 2 seconds
      send "9ok sending u there now u have no free will"
      wait 1 second
      send "%player's display name%&7: &fWAIT WHAT I DIDNT AGREE TO THAT" to player
      wait 1 second
      teleport player to world "build"
    else:
      give player 3 red wool named "&cJelly bean" with lore "&7Click to eat!"
      give player 6 blue wool named "&9Jelly bean" with lore "&7Click to eat!"
      give player 2 white wool named "&fJelly bean" with lore "&7Click to eat!"
      give player 5 orange wool named "&6Jelly bean" with lore "&7Click to eat!"
      give player 2 yellow wool named "&eJelly bean" with lore "&7Click to eat!"
      give player 3 light green wool named "&aJelly bean" with lore "&7Click to eat!"
      give player 1 purple wool named "&5Jelly bean" with lore "&7Click to eat!"
 
I got you fam
Code:
command /jellybeans:
  trigger:
    if player's world is not "build":
      send "You cannot eat jelly beans buddy, sorry... Maybe go to the build world !!"
      wait 2 seconds
      send "9ok sending u there now u have no free will"
      wait 1 second
      send "%player's display name%&7: &fWAIT WHAT I DIDNT AGREE TO THAT" to player
      wait 1 second
      teleport player to world "build"
    else:
      give player 3 red wool named "&cJelly bean" with lore "&7Click to eat!"
      give player 6 blue wool named "&9Jelly bean" with lore "&7Click to eat!"
      give player 2 white wool named "&fJelly bean" with lore "&7Click to eat!"
      give player 5 orange wool named "&6Jelly bean" with lore "&7Click to eat!"
      give player 2 yellow wool named "&eJelly bean" with lore "&7Click to eat!"
      give player 3 light green wool named "&aJelly bean" with lore "&7Click to eat!"
      give player 1 purple wool named "&5Jelly bean" with lore "&7Click to eat!"
Yes, I know how to do this, But I need multiple worlds not 1
 
Yes, I know how to do this, But I need multiple worlds not 1
Code:
command /jellybeans:
  trigger:
    if player's world is not "build" or "i" or "got" or "u" or "fam" or "lmao":
      send "You cannot eat jelly beans buddy, sorry... Maybe go to the build world !!"
      wait 2 seconds
      send "9ok sending u there now u have no free will"
      wait 1 second
      send "%player's display name%&7: &fWAIT WHAT I DIDNT AGREE TO THAT" to player
      wait 1 second
      teleport player to world "build"
    else:
      give player 3 red wool named "&cJelly bean" with lore "&7Click to eat!"
      give player 6 blue wool named "&9Jelly bean" with lore "&7Click to eat!"
      give player 2 white wool named "&fJelly bean" with lore "&7Click to eat!"
      give player 5 orange wool named "&6Jelly bean" with lore "&7Click to eat!"
      give player 2 yellow wool named "&eJelly bean" with lore "&7Click to eat!"
      give player 3 light green wool named "&aJelly bean" with lore "&7Click to eat!"
      give player 1 purple wool named "&5Jelly bean" with lore "&7Click to eat!"
 
Code:
command /jellybeans:
  trigger:
    if player's world is not "build" or "i" or "got" or "u" or "fam" or "lmao":
      send "You cannot eat jelly beans buddy, sorry... Maybe go to the build world !!"
      wait 2 seconds
      send "9ok sending u there now u have no free will"
      wait 1 second
      send "%player's display name%&7: &fWAIT WHAT I DIDNT AGREE TO THAT" to player
      wait 1 second
      teleport player to world "build"
    else:
      give player 3 red wool named "&cJelly bean" with lore "&7Click to eat!"
      give player 6 blue wool named "&9Jelly bean" with lore "&7Click to eat!"
      give player 2 white wool named "&fJelly bean" with lore "&7Click to eat!"
      give player 5 orange wool named "&6Jelly bean" with lore "&7Click to eat!"
      give player 2 yellow wool named "&eJelly bean" with lore "&7Click to eat!"
      give player 3 light green wool named "&aJelly bean" with lore "&7Click to eat!"
      give player 1 purple wool named "&5Jelly bean" with lore "&7Click to eat!"
Thank You!
 
Status
Not open for further replies.