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){

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

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

    Thanks for any help.