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.

Sidebar Help

Discussion in 'Skript' started by YourFavoritePerson, Mar 6, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. YourFavoritePerson

    Joined:
    Feb 8, 2022
    Messages:
    20
    Likes Received:
    0
    can someone please help me with this skript I made for my modded survival server?
    Code (Text):
    1. on first join:
    2.     {money::%player%} = 0
    3.     {playerkills::%player%} = 0
    4.  
    5. on right click:
    6.     player is sneaking:
    7.         event-item is emerald named "&2Money":
    8.             add 1 to {money::%player%}
    9.  
    10. every 2 seconds:
    11.     loop all-players:
    12.         wipe loop-player's sidebar
    13.         set name of sidebar of loop-player to "&c&lMaximus24"
    14.         set score "&4Username &6>> &c%player%" in sidebar of loop-player to 1
    15.         set score "&4Balance &6>> &c${money::%player%}" in sidebar of loop-player to 2
    16.         set score "&4Kills &6>> &c{playerkills::%player%}" in sidebar of loop-player to 3
    17.  
    18. on death:
    19.     victim is a player:
    20.         attacker is a player:
    21.             add 1 to {playerkills::%attacker%}
    22.  
    23. on load:
    24.     register new shapeless recipe for emerald named "&2Money" with lore "&dShift + Right Click to add to &cBalance" using emerald, air, air, air, air, air, air, air, air
    heres a picture of the error
     

    Attached Files:

    #1 YourFavoritePerson, Mar 6, 2022
    Last edited: Mar 7, 2022
  2. WoolBoy

    WoolBoy Member

    Joined:
    Sep 16, 2021
    Messages:
    15
    Likes Received:
    0
    You cant set the "name" of the sidebar, perhaps you want to set the header instead?
    To help you with this issue I need to know what plugin you are using to control scoreboards.
     
  3. YourFavoritePerson

    Joined:
    Feb 8, 2022
    Messages:
    20
    Likes Received:
    0
    I edited the skript, and the plugin is SkQuery
     
  4. ryanrox333

    ryanrox333 Member

    Joined:
    Jul 6, 2019
    Messages:
    17
    Likes Received:
    0
    loop all-players is spelt wrong in line 11, should be loop all players.
     
  5. YourFavoritePerson

    Joined:
    Feb 8, 2022
    Messages:
    20
    Likes Received:
    0
    I’ve tried this but it just creates more errors
     
Thread Status:
Not open for further replies.

Share This Page

Loading...