Discord Thread Counter

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

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.
bro this is deadly annoying
I'm trying to set up a system that converts the specified time value to seconds, starts a counter when the player joins the server, and notifies when this counter reaches the specified time. The problem with the code is that there is no notification when the user expires the given time, and if a new value is assigned while the time has expired, an infinite counter appears even if the server is restarted. how can i solve


Posted by: dawnbringer01 from the skUnity Discord.
 
code_language.skript:
on join:
  while player is online:
    wait 1 second
    add 1 to {playtime::%player’s uuid%}

command playtime:
  trigger:
    send “%{playtime::%player’s uuid%}% seconds” to player
Then in the while loop check if the playtime equals whatever

Posted by: x8ight from the skUnity Discord.
 
Status
Not open for further replies.