BungeeBossbarAPI 1.5.0

Create easier bungeecord bossbars with this!

  1. MrIvanPlays
    Tested Minecraft Versions:
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    Contributors:
    MrIvanPlays
    ** THIS PROJECT IS NO LONGER MAINTAINED **
    The project is not maintained. You can find alternative here: https://www.spigotmc.org/threads/bossbar-api.381122/

    ** IT WILL GET DELETED SOON **


    WARNING! THIS IS A DEVELOPER API! IF YOU ARE A SERVER OWNER AND OTHER PLUGIN REQUIRES IT, INSTALL IT LIKE A NORMAL PLUGIN!!!!

    ** JAVA DOCS: https://mrivanplays.github.io/javadocs/BungeeBossbarAPI/overview-summary.html **
    ** SITE: https://mrivanplays.github.io/ **


    Working with maven/gradle/other can be found here.

    What does it do?
    You can make easier bossbars on Bungeecord with this API.
    Creating a simple bossbar (example code):

    Code (Java):
    public class ExampleCode { // example class
        private YourMain plugin; // get instance of ur main class

        public void sendBossbar(ProxiedPlayer player, String title){
            Bossbar bar = BossbarCreator.createBossbar(new BarTitle(title), BarColor.BLUE, BarStyle.SEGMENTED_20, 0.4f); // crreate the bossbar
            bar.addPlayer(player); // add the player
            plugin.getProxy().getScheduler().schedule(plugin, () -> bar.removePlayer(player), 10, TimeUnit.SECONDS); // remove the player after 10 secs
        }
    }
    There are other methods in BossbarCreator that you can use, so dont be afraid to only one of them.
    IMPORTANT: Make sure to import BossbarCreator, Bossbar, BarColor and BarStyle from com.github.mrivanplays.bungee.bossbar.api