Solved Scoreboard Probleme

Discussion in 'Spigot Plugin Development' started by Xentie, Aug 24, 2017.

  1. Hi, i need some help for a plugin that display a scoreboard who show the online players, but i have a probleme:
    to show the online players, i have to make a new object:
    Code (Text):
    Score j = o.getScore(Bukkit.getOnlinePlayers().size());
    And here is my error :
    The method getScore(OfflinePlayer) in the type Objective is not applicable for the arguments (int)
    How can i convert int to OfflinePlayer ??
    #1 Xentie, Aug 24, 2017
    Last edited: Aug 24, 2017
  2. you can not convert an int to OfflinePlayer.

    those are different things.
  3. Code (Java):
    Score j = o.getScore(Bukkit.getOfflinePlayer("" + Bukkit.getOnlinePlayers().size()));
    • Useful Useful x 1
  4. Ok dodo and thank roro ;D