Discussion in 'Spigot Plugin Development' started by DennisGMD, Jul 21, 2018.

  1. From what I can see you didn't set the score.

    Code (Text):

    Score score = obj.getScore("Test");

    score.setScore(1) sets the string on the line you specify it, and on getScore() you just replace "Test" with whatever you want to show on the scoreboard.

    Oh and I recommend checking for string lengths so you don't run into an error and using ChatColor.translateAlternateColorCodes('&', string) instead of §. It's way easier.
  2. I'm not using Score score = obj.getScore("Test");
    score.setScore(1); this becouse i work with threads and async shit maar he is making my scoreboard and all of the lines but not the text
  3. Oh, sorry then, I'm not quite experienced with async and threads yet ;))