Solved Individual scoreboard for every player

Discussion in 'Plugin Development' started by Sw_aG, Feb 9, 2020.

  1. Offline


    "Hello world" - (OMG IM SO ORIGINAL)

    I'm trying to create a very simple scoreboard that will show you how many kills you got.
    But I can't figure out how to change the value for each individual player
    I've made the scoreboard and all, but I don't know how to show everyone THEIR own score
    I thought about making every single player a new scoreboard that looks identical to the main board
    with the exception that he sees the value of his own kills, but it seems kind of a hassle.
    Is that the only way of doing it ? is there some value you can share ?

    If anyone can shed some light about this topic I'll appreciate the knowledge.
    Thanks !
  2. Offline

    timtower Moderator Moderator

    @Sw_aG You could let placeholderapi handle it.
  3. Offline


    @timtower Is it possible without an API ?
  4. Offline

    timtower Moderator Moderator

    @Sw_aG Then it will just be more hassle.
  5. Offline


    @Sw_aG you can use this if you don't want to use the PlaceHolderAPI:
    This will go get your statistics on the server and after the kills stats! The code bellow will return a int so if you have 70 player kills, it will return 70!

    Have a great day
  6. Offline


    Thanks for replying.
    I actually created myself a good method for every player, but I'm sure this will come in handy for people who will look up scoreboard related code.
    Have a good day :D

Share This Page