First Join Error: Changing names!

  • 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 community!

    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.

LoneElf

Active Member
Apr 30, 2017
165
2
18
So, my skript is very basic which is why I am not posting it, but it is how I explain: So, I have the on first join event which works great, exept for one thing I have noticed: When a player changes his name, he is considered a new joiner which is not what I want because on a first join, I made it so that it resets the player's statistics. Thanks :emoji_slight_smile:
 
You could try something like this:
code_language.skript:
on join:
    if {first_join.%player's uuid%} is not set:
        set {first_join.%player's uuid%} to true
        #other stuff you want to happen on first join
 
Status
Not open for further replies.