On join doesn't work (Skript)

  • 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.

ICoding_

New Member
May 11, 2018
9
0
0
23
When i do "On join:" or "On first join:" it gives me an error...

Help me please!
[doublepost=1544951856,1544951823][/doublepost]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!
[doublepost=1544952012][/doublepost]This is the code

code_language.skript:
#  
#                            W E L C O M E   T O  
#
#                                R A N K S +
#
#                    C R E A T E D   B Y :   I C O D I N G
#
#    (! Please don't edit the settings below unless you know what you are doing !)

options:
    #
    # Rank prefixes
    #
   
    default: &7
    developer: &a&lDEVELOPER &r&2
    mod: &3&lMOD &r&b
    admin: &4&lADMIN &r&c
    owner: &5&lOWNER &r&d
   
   
on first join:
    if folder "/plugins/Ranks+/Players" doesn't exist:
        create folder "/plugins/Ranks+/Players"
    if file "/plugins/Ranks+/Players/%uuid of player%.yml" doesn't exist:
        create file "/plugins/Ranks+/Players/%uuid of player%.yml"
        wait 1 tick
    wd "UUID:" to "/plugins/Ranks+/Players/%uuid of player%.yml"
    wd "Rank:" to "/plugins/Ranks+/Players/%uuid of player%.yml"
    wd "IsStaff:" to "/plugins/Ranks+/Players/%uuid of player%.yml"
    set {uuid::%player%} to yaml value "UUID" from file "/plugins/Ranks+/Players/%uuid of player%.yml"
    set {rank::%player%} to yaml value "Rank" from file "/plugins/Ranks+/Players/%uuid of player%.yml"
    set {isStaff::%player%} to yaml value "IsStaff" from file "/plugins/Ranks+/Players/%uuid of player%.yml"
[doublepost=1544955850][/doublepost]MY SKRIPT ISNT WORKING AS IT SHOULD!!!!
PLEASE HELP ME LIKE RIGHT NOW
 
Status
Not open for further replies.