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.

Formatting %now%

Discussion in 'Skript' started by ICoding_, Jul 9, 2020.

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

    ICoding_ New Member

    Joined:
    May 11, 2018
    Messages:
    9
    Likes Received:
    0
    Hello

    I am trying to recreate Hypixel Skyblock with skript and I need to know how I can reformat the normal %now% format to have / instead of -, and it would also help if anyone told me how I can get the date and time separately.

    Here is my code:

    Code (Text):
    1. every 1 second:
    2.     loop all players:
    3.         wipe loop-player's sidebar
    4.         set name of sidebar of loop-player to "&e&lSKYBLOCK"
    5.         set score "&7%date% &8M27E" in sidebar of loop-player to 9
    6.         set score "&b" in sidebar of loop-player to 8
    7.         set score "&f Late Spring 13th" in sidebar of loop-player to 7
    8.         set score "&7 %now%" in sidebar of loop-player to 6
    9.         set score "&7 thing &blocation" in sidebar of loop-player to 5
    10.         set score "&8" in sidebar of loop-player to 4
    11.         set score "&fPurse: &6%balance of loop-player%" in sidebar of loop-player to 3
    12.         set score "&7" in sidebar of loop-player to 2
    13.         set score "&ewww.hypixel.net" in sidebar of loop-player to 1
    And also, I tried using %date% but that didn't work.

    Here are also my plugins:
    Skript, Vault, Skellete, skRayFall, SkQuery, Essentials, EssentialsSpawn and EssentialsChat

    I don't know if that helped but there you go.
     
  2. ChrilleDEV

    ChrilleDEV Member

    Joined:
    Jul 6, 2020
    Messages:
    11
    Likes Received:
    0
    Hypixel is running with a custom time system that is not the same as ours.
     
  3. ICoding_

    ICoding_ New Member

    Joined:
    May 11, 2018
    Messages:
    9
    Likes Received:
    0
    I know but I still want to know how I would go about separating the time and the date.
     
  4. ChrilleDEV

    ChrilleDEV Member

    Joined:
    Jul 6, 2020
    Messages:
    11
    Likes Received:
    0
    Do a custom time cycle, I can make 1 for u if u want?
     
  5. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45

    Code (Skript):
    1. command /timetest:
    2.     trigger:
    3.         set {_time} to now formatted as "HH:mm"
    4.         set {_date} to now formatted as "yyyy/MM/dd"
    5.         send "%{_time}%"
    6.         send "%{_date}%"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...