Solved if now time between 9am and 20pm

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

OsterMine

Member
Jun 5, 2023
2
0
1
25
Hi, i want to write mini skript - if now time between 9am and 20pm → send "123"

how can i do that? thank you
 
Can you explain it better?
Do you want if the time is between 9am and 20pm send every second "123" or if the player joins and the time is between 9am and 20pm?
I will write both below:
Code:
every second:
  if <name of your recource world>'s time is between 9:00 and 20:00:
    send "123" to player
Code:
on join:
  if <name of your recource world>'s time is between 9:00 and 20:00:
    send "123" to player
If you want in code 1 more delay, change it by every 10 seconds or minutes or whatever you want.
Change <name of your recource world> by the name of your recourceworld.
 
i found what i need:


Code:
on place respawn anchor:
    if time is greater than 10:00:
        if time is lower than 20:00:

thanks ganaka