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.

[ PLEASE HELP ME ] Ersatz

Discussion in 'Skript' started by kqiz, Oct 3, 2021.

  1. kqiz

    kqiz New Member

    Joined:
    Oct 3, 2021
    Messages:
    9
    Likes Received:
    0
    Hey, Im a minehut server owner trying to make a sidebar that says your kills, playtime, rank, server uptime ,server online players.

    But my PlaceholderAPI wont mix in and this is where i heard about Ersatz where you make your own Placeholders i think but i honestly dont know..

    All i ask is that someone helps me because i have lost hours of quality sleep [​IMG] trying to figure this out but haven't been able to [​IMG]
     
  2. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    1. Instead of Ersatz (which is outdated) you should use skript-placeholder
    2. You don't even need placeholders for what you're trying to do, there are already built in expressions for all that

    playtime = player's time played
    online players = size of all players

    For the kills, use a death event and add to a variable then showcase the variable
    And for the server uptime, set a variable to now when the servers starts up and then get the difference between now and the variable
     
  3. kqiz

    kqiz New Member

    Joined:
    Oct 3, 2021
    Messages:
    9
    Likes Received:
    0
    oToghty oh i didnt know it was outdated but ive tried skript-placeholder 32 times it hasnt worked
    and also ive tried just doing %playtime% it said i couldnt
     
  4. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    I just told you, it's `time played of player` not playtime and it requires skript 2.5+
     
  5. kqiz

    kqiz New Member

    Joined:
    Oct 3, 2021
    Messages:
    9
    Likes Received:
    0
    thank you ive done time played of player but when you have more than 1 day it really stretches out the sidebar so is there any way i can make it say for example "Playtime: 3d 14h 12m"? instead of Playtime: 1 day and 2.93 hours.

    Also the playtime only updates when you rejoin.. Any way of fixing that?
     
  6. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    You can update it every now and then as you wish but you can just try to use skript-placeholders as it'd make things easier for you

    to use it, try `set {_playtime} to placeholder "" from player` and make sure to download any extensions via /papi ecloud download ... if it needs any (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#speedpersec)
     
  7. kqiz

    kqiz New Member

    Joined:
    Oct 3, 2021
    Messages:
    9
    Likes Received:
    0
    Thank you for all you help and im a dumbass i know but i still dont understand xD
    I have had PlaceholderAPI installed on my server ever since i made it and ive kept trying skript-placeholders i thought if you had it on your server then it allows the PlaceholderAPI so i just went straight to putting placeholderapi placeholders into Skript.. lmao
    But where do i put set {_playtime} to placeholder "" from player` ?
     
  8. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    Well you do set {_playtime} to placeholder "the placeholder" from player right where you set your scoreboard and then use %{_playtime}% to showcase it,
     
  9. kqiz

    kqiz New Member

    Joined:
    Oct 3, 2021
    Messages:
    9
    Likes Received:
    0
    where do i do set {_playtime}?
     
  10. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    Where you format your scoreboard
     
  11. kqiz

    kqiz New Member

    Joined:
    Oct 3, 2021
    Messages:
    9
    Likes Received:
    0
    So this? upload_2021-10-4_15-26-54.png
     
  12. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    Not even close
    Code (Text):
    1. set {_kills} to placeholder "statistic_player_kills" from player
    2. set line 9 of player's scoreboard to "Kills %{_kills}%"
     
  13. kqiz

    kqiz New Member

    Joined:
    Oct 3, 2021
    Messages:
    9
    Likes Received:
    0
    oh lmao thanks i dont know skript
    --- Double Post Merged, Oct 6, 2021, Original Post Date: Oct 6, 2021 ---
    Bro.
    Thank you so much,
    Is there any way i can pay you back aka paypal,cashapp?
    --- Double Post Merged, Oct 6, 2021 ---
    Wait, Just one last thing.
    The kills, server uptime, online players, rank,playtime only updates when you rejoin..
    Know any fixes?
     

Share This Page

Loading...