Takion is a powerful Spigot library for advanced chat, text formatting, and messaging utilities in Minecraft plugins.
Takion is a comprehensive Spigot library designed to streamline the development of text and chat-related plugins for Minecraft servers. It provides a robust set of tools and utilities to manage messaging, logging, placeholder replacement, and more, making it an essential core for enhancing chat interactions within Minecraft.
Takion aims to simplify the creation and management of chat-based functionalities in Minecraft plugins. It serves as a foundational library that developers can leverage to implement advanced text and chat features efficiently.
To include Takion in your project, add the following repository and dependency to your pom.xml:
<repositories>
<repository>
<id>croabeast-repo</id>
<url>https://croabeast.github.io/repo/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>me.croabeast</groupId>
<artifactId>Takion</artifactId>
<version>1.2</version>
</dependency>
<!-- If you want a shaded version with all its dependencies compiled, select this -->
<dependency>
<groupId>me.croabeast</groupId>
<artifactId>Takion-shaded</artifactId>
<version>1.2</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
To include Takion in your project, add the following to your build.gradle:
repositories {
maven {
url 'https://croabeast.github.io/repo/'
}
}
dependencies {
implementation 'me.croabeast:Takion:1.2'
// If you want a shaded version with all its dependencies compiled, select this
implementation 'me.croabeast:Takion-shaded:1.2'
}
Initialize TakionLib in your plugin's onEnable method:
@Override
public void onEnable() {
TakionLib lib = new TakionLib(this);
// Additional initialization code...
}
Send a message to a player:
lib.getLoadedSender().addPlaceholder("{player}", player.getName())
.send("Hello, {player}! Welcome to our server.");
Format a title and send it to a player:
lib.getTitleManager().builder("Welcome", "Enjoy your stay!").send(player);
Use the CharacterManager to manage text alignment and formatting:
String alignedText = lib.getCharacterManager().align("Centered Text");
player.sendMessage(alignedText);
Example of using CollectionBuilder:
List<String> list = CollectionBuilder.of("Item1", "Item2", "Item3").toList();
player.sendMessage(String.join(", ", list));
Takion includes several dependencies that are included within the library (compiled in the shaded version), so you don't need to add them separately. The primary dependencies are:
Note: UpdateChecker was originally created by Choco. For more details, see this post.
While the following dependencies are optional and provided, they are not required for the core functionality of Takion:
Contributions are welcome! Please fork the repository and submit pull requests with your changes. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.