[SKRIPT] Replacement of scoreboard reload?

Discussion in 'Skript' started by DropTheHood, Apr 14, 2017.

  1. Hi! So, whenever a player joins, I have it set so it loops all players and it reloads their scoreboard. So, this causes a quite bit of lag to everyone when someone joins, so I want to fix that. Is there a way that I can just refresh one part of the scoreboard, which is the players? Thanks :) This will help me out a lot!
     
  2. Code (Text):
    on join:
        loop all players:
            set score "&3Players online:" in sidebar of loop-player to number of all players
    on quit:
        loop all players:
            set score "&3Player's online:" in sidebar of loop-player to number of all players
     
  3. Doesn't work :/ It doesn't know that condition :/ Thanks ;)
     
  4. What doesn't it understand? Post the error please.
     
  5. on join:
    wait 3 ticks
    while player is online:
    player is online
    wipe player's sidebar
    set name of sidebar of player to "&cInformation"
    set score "&7Kingdom:" in sidebar of player to 15
    set score " &f%{kingdoms2.%player%}%" in sidebar of player to 14
    set score "&9" in sidebar of player to 13
    set score "&7Rank:" in sidebar of player to 12
    set score " &f%{rol.%player%}%" in sidebar of player to 11
    set score "&6" in sidebar of player to 10
    set score "&7Influence:" in sidebar of player to 9
    set score " &f%{influence.%player%}%" in sidebar of player to 8
    set score "&e" in sidebar of player to 7
    set score "&7Oorlog:" in sidebar of player to 6
    set score " &f%{oorlog.server}%" in sidebar of player to 5
    set score "&2" in sidebar of player to 4
    set score "&7Locatie:" in sidebar of player to 3
    set score "&f In-Dev" in sidebar of player to 2
    wait 5 second

    is an exemple
    it will check every 5 seconds! you can change this to whatever you want!