1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

One times command

Discussion in 'Skript' started by Deku, Jul 22, 2020.

Thread Status:
Not open for further replies.
  1. Deku

    Deku Member

    Joined:
    Jul 12, 2020
    Messages:
    36
    Likes Received:
    0
    How can you make a command that you can run only once?
     
  2. Gowixx

    Gowixx Member

    Joined:
    Jul 9, 2020
    Messages:
    28
    Likes Received:
    5
    Code (Text):
    1. command /urcommandhere:
    2.     permission: ur.permission.here
    3.     trigger:
    4.         if {%player's uuid%.used.theonceonlycommand} is set:
    5.             send "&cYou have already used this command."
    6.             stop
    7.         else:
    8.             if {%player's uuid%.used.theonceonlycomand} is not set:
    9.                 set {%player's uuid%.used.theonceonlycommand} to "yews"
    10.                 console command "/give %player% cake 1"
    Here you go! Tell me if you need any help, Best answer would be nice too :emoji_slight_smile: (also nice name)
     
  3. Deku

    Deku Member

    Joined:
    Jul 12, 2020
    Messages:
    36
    Likes Received:
    0
    Thanks you!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...