A simple TextComponents implementation that provides support for Sponge
Most of the heavy lifting is provided by the Adventure Implementation! For more general documentation go there
This does not include methods provided by the Adventure Implementation
The following methods are added to all IComponents in this implementation:
Name | Parameters | Return Type | Function |
---|---|---|---|
sendToAll | Sends the message to all players and displays it inside of the console | ||
log | Displays the component to the console only | ||
sendToAllWithPermission | String | Sends the component to all players with the provided permission |
TextComponents is available on Maven from either the Official Maven Repository or JitPack
The latest version is hosted on an Official Maven Repository
First include the repository:
<repository>
<id>bb1-repository-releases</id>
<name>BradBot_1's Repository</name>
<url>https://repo.bb1.fun/releases</url>
</repository>
Then add the dependency:
<dependency>
<groupId>com.tubmc</groupId>
<artifactId>text-components-sponge8</artifactId>
<version>1.0.0</version>
</dependency>
If the official repository is down or you choose not to trust it you can always pull it from JitPack
First include the repository:
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
Then add the dependency:
<dependency>
<groupId>com.github.BradBot1</groupId>
<artifactId>text-components-sponge8</artifactId>
<version>LATEST</version>
</dependency>
Just run the following commands:
git clone https://github.com/TubMC/TextComponents-Sponge.git
cd TextComponents-Sponge
git checkout origin sponge8
mvn clean install
It will then be accessible from your local Maven Repoistory
Now you can simply add the following dependency without a repository:
<dependency>
<groupId>com.tubmc</groupId>
<artifactId>text-components-sponge8</artifactId>
<version>1.0.0</version>
</dependency>