`Component.text` not showing up
jman13378 opened this issue · 2 comments
jman13378 commented
Hello!
I've been dealing with this issue for awhile i am trying to use Component#text
but it doesnt exist but in another project i have i use the same build and everything but it shows up
build
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>info.sokobot.Chamber</groupId>
<artifactId>Chamber</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.19-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>dev.triumphteam</groupId>
<artifactId>triumph-gui</artifactId>
<version>3.1.3</version>
</dependency>
</dependencies>
<repositories>
<!-- This adds the Spigot Maven repository to the build -->
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<relocations>
<relocation>
<pattern>dev.triumphteam.gui</pattern>
<shadedPattern>info.sokobot.chamber.Main</shadedPattern> <!-- Replace package here here -->
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
ProfessorSam commented
It seems to me that you are missing the Adventure api dependency. You can add it manually (https://docs.advntr.dev/platform/bukkit.html, https://docs.advntr.dev/getting-started.html) or, what is much easier, use the paper api which supports the adventure api natively (https://papermc.io/using-the-api). The second is of course only possible if you also use paper as server.
LichtHund commented
The lib should already include Adventure API transitively, so this wouldn't be the issue.