Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ How do I add it to my project?
Simply add the following to your `pom.xml`.

<repository>
<id>tiger-repo</id>
<url>http://repo.tigerhix.me/content/repositories/snapshots/</url>
<id>funkemunky-snapshots</id>
<url>https://nexus.funkemunky.cc/content/repositories/snapshots</url>
</repository>

<dependency>
Expand Down
48 changes: 40 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.tigerhix.lib</groupId>
<artifactId>scoreboard</artifactId>
<version>1.0.1-SNAPSHOT</version>
<version>1.1.0-SNAPSHOT</version>

<packaging>jar</packaging>

Expand All @@ -18,15 +18,19 @@

<repositories>
<repository>
<id>tiger-repo</id>
<url>http://repo.tigerhix.me/content/groups/public/</url>
<id>funkemunky-releases</id>
<url>https://nexus.funkemunky.cc/content/repositories/releases/</url>
</repository>
<repository>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
</repositories>

<distributionManagement>
<snapshotRepository>
<id>nexus</id>
<url>http://repo.tigerhix.me/content/repositories/snapshots</url>
<id>funkemunky-snapshots</id>
<url>https://nexus.funkemunky.cc/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

Expand All @@ -45,10 +49,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<version>3.13.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>17</source>
<target>17</target>
<compilerArguments>
<O>-Xlint:all</O>
<O>-Xlint:-path</O>
Expand All @@ -57,7 +61,35 @@
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.4</version>
<executions>
<execution>
<id>snapshot-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.19.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.github.paperspigot</groupId>
<artifactId>1.19.4</artifactId>
<version>1.19.4</version>
<scope>provided</scope>
</dependency>
</dependencies>

</project>
11 changes: 6 additions & 5 deletions src/main/java/me/tigerhix/lib/scoreboard/type/Entry.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
package me.tigerhix.lib.scoreboard.type;

import me.tigerhix.lib.scoreboard.common.Strings;
import net.kyori.adventure.text.TextComponent;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;

public class Entry {

private String name;
private TextComponent name;
private int position;

public Entry(String name, int position) {
this.name = Strings.format(name);
this.name = LegacyComponentSerializer.legacySection().deserialize(name);
this.position = position;
}

public String getName() {
public TextComponent getName() {
return name;
}

public void setName(String name) {
public void setName(TextComponent name) {
this.name = name;
}

Expand Down
Loading