★ BossBar

May 30, 2017
★ BossBar
  • Code:
    TTA_Methods.createBossBar(player, text, progress, barstyle, barcolor, barflag, visible);
    TTA_Methods.setBarTitle(text);
    TTA_Methods.setBarProgress(progress);
    TTA_Methods.setBarColor(color);
    TTA_Methods.setBarStyle(style);
    TTA_Methods.addBarFlag(flag);
    TTA_Methods.setBarVisibility(visible);
    TTA_Methods.removeBarFlag(flag);
    TTA_Methods.removeBossBar(player);

    Type & usage of variable:
    • player = Player - Player that the bar is created for / Player which gets his bar removed. [2]

    • text = String - Text that will be shown in the bossbar.
    • progress = Double - Option to set how far the bar is progressed. [1]
    • color = BarColor - Color of the bar.
    • style = BarStyle - Set the style the bar is displayed like.
    • flag = BarFlag - Set a flag that is executed / created by the bar.
    • visible = Boolean - Set if the player can see the bar created for him.


    Notes:
    [1] - Must be a value between 1.0 - 0.0 (100% - 0%)
    [2] - Bar need to be created for the player before removing it.