Solved Best way to load a scoreboard?

Discussion in 'Plugin Development' started by kameronn, Jan 4, 2017.

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

    kameronn

    I'm currently loading a sideboard (scoreboard) but it's creating a slight delay on the server.

    First when normally loading it would give me a "Downloading Terrain...." for around 1 second before allowing me to join the server.

    I've fixed this by running the scoreboard on another thread but it hasn't completely solved the problem. Now when players join the server it's quick and fast but they're in the air and everything takes like .5 seconds to load. (they cant see blocks or anything). I obviously cant run this async because yeah. Does anyone a solution? I know I sound picky with the .5 seconds but I'm afraid it might create future problems
     
  2. Offline

    Zombie_Striker

    @kameronn
    Have you tried waiting till they are fully online before setting the scoreboard? They should be fully connected after about 5 seconds.
     
    kameronn likes this.
  3. @kameronn Wait 1 tick in PlayerJoinEvent, this means they will be on and fully loaded
     
Thread Status:
Not open for further replies.

Share This Page