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
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.
HTML:
<dependency>
<groupId>xyz.tozymc.spigot </groupId>
<artifactId>title-api </artifactId>
<version>1.0 </version>
</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.
Code (Java):
dependencies
{
implementation 'xyz.tozymc.spigot:title-api:1.0'
}
implementation 'xyz.tozymc.spigot:title-api:1.0'
}
If your project doesn't have any build tools, you can install it manually.
- Download the library in github release.
- Import title-api-1.0-all.jar file to your project.
Title
Code (Java):
// 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 ) ;
TitleApi. sendTitle (player, title, subtitle, fadeIn, stay, fadeOut ) ;
// Using title object
Title title = new Title (title, subtitle, fadeIn, stay, fadeOut ) ;
TitleApi. sendTitle (player, title ) ;
Code (Java):
TitleApi.
sendActionbar
(player, message
)
;
Distributed under the MIT License. See LICENSE for more information.
External Links
- Javadoc: javadoc.io
- GitHub: github.com
- OSS Index: ossindex.sonatype.org
- Spigot Resources: spigotmc.org
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
[API] title-api is a free Minecraft Java mod. Downloaded 152 times (via Spigot). Download it and open it directly in the game.