Skip to content

An API that allows you to send Action Bar, Boss Bar, Sub-title, and Title in Minecraft 1.8.X.

License

Notifications You must be signed in to change notification settings

Arctyll/DisplayAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Display-API

BossBar, ActionBar, Title, and Hologram API for Minecraft 1.8.X
Lightweight and dependency-free — ideal for plugin developers using Spigot 1.8.8. Includes Static + Animated Holograms using ArmorStands.


Installation

Display-API is published to Sonatype Maven Central:
🔗 https://search.maven.org/artifact/com.arctyll/display-api

Maven

<dependencies>
  <dependency>
    <groupId>com.arctyll</groupId>
    <artifactId>display-api</artifactId>
    <version>1.0</version>
  </dependency>
</dependencies>

Gradle (Groovy DSL)

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.arctyll:display-api:1.0'
}

Gradle (Kotlin DSL)

repositories {
    mavenCentral()
}

dependencies {
    implementation("com.arctyll:display-api:1.0")
}

Repository

GitHub: https://github.com/Arctyll/DisplayAPI


Features

  • BossBars with full color + style support
  • ActionBars with duration control
  • Titles + Subtitles with animation
  • Static & Animated Holograms (via ArmorStands)
  • ️No external dependencies
  • Built for Spigot 1.8.8

Quick Usage

BossBarAPI

BossBar bar = new BossBar("Server Restarting", 100);
bar.setColor("PURPLE");
bar.setStyle("SOLID");
bar.sendToPlayer(player);
bar.updateHealth(player, 50);
bar.removeFromPlayer(player);
bar.sendToAll();

BossBar Colors

  • PURPLE (default)
  • RED
  • BLUE
  • GREEN
  • YELLOW
  • WHITE
  • PINK

BossBar Styles

  • SOLID (default)
  • SEGMENTED_6
  • SEGMENTED_10
  • SEGMENTED_12
  • SEGMENTED_20

ActionBarAPI

ActionBar action = new ActionBar("You're now in combat!", 5); // 5 seconds
action.sendToPlayer(player);
action.sendToAll();

TitleAPI

Title title = new Title();
title.sendToPlayer(player, "Level Up!", "You reached level 10!", 10, 70, 20);
title.sendToAll("Welcome!", "Good luck!", 10, 60, 10);

Durations are in ticks (20 ticks = 1 second)


HologramAPI

Static Hologram Example

HologramManager manager = new HologramManager(plugin);

Location loc = player.getLocation();
List<String> lines = Arrays.asList("&aHello", "&eWelcome to the server!");

manager.createHologram(
  1, "static", loc, lines, true, "WelcomeHologram", true
);

Animated Hologram Example

manager.createHologram(
  2,
  "animated",
  player.getLocation().add(0, 2, 0),
  Arrays.asList("&cRed Text", "&aGreen Text", "&9Blue Text"),
  true,
  "AnimatedHologram",
  true
);

Tested Versions

  • Minecraft 1.8.8 (Spigot)
  • Other versions untested — contributions welcome

Authors


Credits

  • ActionBar system & original README structure by @vNoobblade

Contributions

Pull requests and issues welcome!
Use the PR Template


License

MIT License — Free to use, just give credit.

About

An API that allows you to send Action Bar, Boss Bar, Sub-title, and Title in Minecraft 1.8.X.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages