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.

On join doesn't work (Skript)

Discussion in 'Skript' started by ICoding_, Dec 16, 2018.

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

    ICoding_ New Member

    Joined:
    May 11, 2018
    Messages:
    9
    Likes Received:
    0
    When i do "On join:" or "On first join:" it gives me an error...

    Help me please!
    --- Double Post Merged, Dec 16, 2018, Original Post Date: Dec 16, 2018 ---
    error is:

    [10:12:05 INFO]: [Skript] Reloading ranks+.sk...
    [10:12:05 ERROR]: can't understand this event: 'on first join' (ranks+.sk, line 22: on first join:')
    [10:12:05 INFO]: [Skript] Encountered 1 error while reloading ranks+.sk!
    >sk reload ranks+
    [10:12:17 INFO]: [Skript] Reloading ranks+.sk...
    [10:12:17 ERROR]: can't understand this event: 'on join' (ranks+.sk, line 22: on join:')
    [10:12:17 INFO]: [Skript] Encountered 1 error while reloading ranks+.sk!
    --- Double Post Merged, Dec 16, 2018 ---
    This is the code

    Code (Skript):
    1. #  
    2. #                            W E L C O M E   T O  
    3. #
    4. #                                R A N K S +
    5. #
    6. #                    C R E A T E D   B Y :   I C O D I N G
    7. #
    8. #    (! Please don't edit the settings below unless you know what you are doing !)
    9.  
    10. options:
    11.     #
    12.     # Rank prefixes
    13.     #
    14.    
    15.     default: &7
    16.     developer: &a&lDEVELOPER &r&2
    17.     mod: &3&lMOD &r&b
    18.     admin: &4&lADMIN &r&c
    19.     owner: &5&lOWNER &r&d
    20.    
    21.    
    22. on first join:
    23.     if folder "/plugins/Ranks+/Players" doesn't exist:
    24.         create folder "/plugins/Ranks+/Players"
    25.     if file "/plugins/Ranks+/Players/%uuid of player%.yml" doesn't exist:
    26.         create file "/plugins/Ranks+/Players/%uuid of player%.yml"
    27.         wait 1 tick
    28.     wd "UUID:" to "/plugins/Ranks+/Players/%uuid of player%.yml"
    29.     wd "Rank:" to "/plugins/Ranks+/Players/%uuid of player%.yml"
    30.     wd "IsStaff:" to "/plugins/Ranks+/Players/%uuid of player%.yml"
    31.     set {uuid::%player%} to yaml value "UUID" from file "/plugins/Ranks+/Players/%uuid of player%.yml"
    32.     set {rank::%player%} to yaml value "Rank" from file "/plugins/Ranks+/Players/%uuid of player%.yml"
    33.     set {isStaff::%player%} to yaml value "IsStaff" from file "/plugins/Ranks+/Players/%uuid of player%.yml"
    --- Double Post Merged, Dec 16, 2018 ---
    MY SKRIPT ISNT WORKING AS IT SHOULD!!!!
    PLEASE HELP ME LIKE RIGHT NOW
     
  2. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    What version are you using?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...