Skip to content
master
Switch branches/tags
Code

Latest commit

Bumps com.github.johnrengelman.shadow from 7.1.1 to 7.1.2.

---
updated-dependencies:
- dependency-name: com.github.johnrengelman.shadow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
42ae8e7

Git stats

Files

Permalink
Failed to load latest commit information.

TitleManager

Version Actions Status Javadoc Minecraft versions Players currently experiencing TitleManager Servers currenty running TitleManager

A Bukkit plugin for sending titles and setting the header and footer of the player list. Spigot Project Page


For Developers

The Repository

Example for Gradle:

maven {
    name 'puharesource-repo'
    url 'https://repo.puha.io/repo/'
}

Example for Maven:

<repository>
  <id>puha-repo</id>
  <url>https://repo.puha.io/repo/</url>
</repository>

The dependency

Example for Gradle:

compile group: 'io.puharesource.mc', name: 'TitleManager', version: '2.2.0'

Example for Maven

<dependency>
   <groupId>io.puharesource.mc</groupId>
   <artifactId>TitleManager</artifactId>
   <version>2.2.0</version>
</dependency>

plugin.yml

If your plugin can't run without TitleManager add the following line to your plugin.yml file.

depend: [TitleManager]

If your plugin can run without TitleManager, then add the following line to your plugin.yml file instead

softdepend: [TitleManager]

Getting the API instance

Once you want to use TitleManager's API, you'll need an instance of TitleManagerAPI, which carries all of the methods available for TitleManager. I suggest getting the instance once you load your plugin and store it somewhere easily accessible, for this example I'll however just be storing it locally in the onEnable method.

Java
@Override
public void onEnable() {
  TitleManagerAPI api = (TitleManagerAPI) Bukkit.getServer().getPluginManager().getPlugin("TitleManager");
}
Kotlin

For kotlin I suggest using the lazy delegate for storing the instance of TitleManager when accessed.

val titleManagerAPI : TitleManagerAPI by lazy { Bukkit.getServer().pluginManager.getPlugin("TitleManager") }

About

Adds hovering titles, actionbar titles, tabmenu titles and a scoreboard sidebar to your Minecraft 1.8 - 1.18 server.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project