Kind of Healthbar thingy

Discussion in 'Spigot Plugin Development' started by GoRoK, Jun 2, 2017.

  1. Hey there,

    so im trying to make a healthbar and add another "stats" element to it.

    So i want like: "xx <3 | xxx Points".
    I have no clue how im gonna do this.
    I tried out like:

    Code (Text):

    Objective o = s.registerNewObjective("health", "health");

    if(o != null){
        return;
    }

    Team t = s.registerNewTeam("healthTeam");
    t.setPrefix(ChatColor.BLUE + "");


    o.setDisplayName(ChatColor.RED + "❤"  + " | Points: " + sql.getPoints(Player)); //The hears are made automatically?
    o.setDisplaySlot(DisplaySlot.BELOW_NAME);
    if(_o != null)
        return;
     
    But even if it would work, i wouldnt know on how to make changes on it..

    Thanks for any help.