Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/puharesource/titlemanager
Adds hovering titles, actionbar titles, tabmenu titles and a scoreboard sidebar to your Minecraft 1.8 - 1.18 server.
https://github.com/puharesource/titlemanager
bukkit kotlin spigot
Last synced: 28 days ago
JSON representation
Adds hovering titles, actionbar titles, tabmenu titles and a scoreboard sidebar to your Minecraft 1.8 - 1.18 server.
- Host: GitHub
- URL: https://github.com/puharesource/titlemanager
- Owner: Puharesource
- License: other
- Created: 2014-09-03T23:10:06.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-01-25T09:43:31.000Z (10 months ago)
- Last Synced: 2024-10-11T03:40:15.736Z (28 days ago)
- Topics: bukkit, kotlin, spigot
- Language: Kotlin
- Homepage: https://www.spigotmc.org/resources/titlemanager.1049/
- Size: 309 MB
- Stars: 240
- Watchers: 13
- Forks: 52
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
TitleManagerA Bukkit plugin for sending titles and setting the header and footer of the player list. Spigot Project Page
---
* **[WIKI & GUIDES](https://tmdocs.tarkan.dev)** – plugin guidelines.
* **[COMMANDS](https://tmdocs.tarkan.dev/admins/commands)** – command guidelines.
* **[PERMISSIONS](https://tmdocs.tarkan.dev/admins/permissions)** – command and feature permissions.
* **[SUPPORT CHAT](https://discord.gg/U3Yyu6G)** - discord support chat and help.For Developers
--------------#### The Repository
Example for Gradle .kts:
```kotlin
maven("https://repo.tarkan.dev")
```Example for Gradle:
```groovy
maven {
url 'https://repo.tarkan.dev'
}
```Example for Maven:
```xmltarkan-repo
https://repo.tarkan.dev```
#### The dependency
Example for Gradle .kts:
```kotlin
implementation('io.puharesource.mc:TitleManager:2.3.1')
```Example for Gradle:
```groovy
compile group: 'io.puharesource.mc', name: 'TitleManager', version: '2.3.1'
```Example for Maven
```xmlio.puharesource.mc
TitleManager
2.3.1```
### plugin.yml
If your plugin can't run without TitleManager add the following line to your plugin.yml file.
```yaml
depend: [TitleManager]
```If your plugin can run without TitleManager, then add the following line to your plugin.yml file instead
```yaml
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
```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.
```kotlin
val titleManagerAPI : TitleManagerAPI by lazy { Bukkit.getServer().pluginManager.getPlugin("TitleManager") }
```