Sueta
[A

[API] title-api

Public archive

Library to use titles in Spigot server.

·Plugin

title-api
Library to use titles in Spigot server

This library will help you to send titles in your server. You can send a title to the player by sending it to the player's title or the player's actionbar. The title message supports color codes and hex colors. So it will become easier to send titles to players.

Notes: This is a library, not a complete spigot plugin.

Requirements
The source code used is java 8 and built under jdk1.8.0_291. Any java version lower than java 8 will cause errors.

  • Java 8 or later
  • Spigot 1.8 or later

Installation
There are many ways to install libraries to your plugin dependencies. You can follow this instruction.

Maven
Add this section inside <dependencies> tag in your pom.xml.

<dependency>
  <groupId>xyz.tozymc.spigot</groupId>
  <artifactId>title-api</artifactId>
  <version>1.0</version>
</dependency>


Gradle

Follow this instruction if your build tool is Gradle.

dependencies {
    implementation  'xyz.tozymc.spigot:title-api:1.0'
}

Manual
If your project doesn't have any build tools, you can install it manually.

  1. Download the library in github release.
  2. Import title-api-1.0-all.jar file to your project.

How to use
Title

// Directly
TitleApi.sendTitle(player, title, subtitle, fadeIn, stay, fadeOut);

// Using title object
Title title = new Title(title, subtitle, fadeIn, stay, fadeOut);
TitleApi.sendTitle(player, title);

Actionbar

TitleApi.sendActionbar(player, message);

License
Distributed under the MIT License. See LICENSE for more information.

External Links

Similar projects

Plugin →