📝 Fixs

This commit is contained in:
Maxlego08 2024-08-10 19:39:48 +02:00
parent 44ebf24db3
commit 6f3248eefa
5 changed files with 16 additions and 4 deletions

View File

@ -68,6 +68,10 @@
<pattern>com.cryptomorin.xseries</pattern>
<shadedPattern>fr.maxlego08.koth.xseries</shadedPattern>
</relocation>
<relocation>
<pattern>fr.mrmicky.fastboard</pattern>
<shadedPattern>fr.maxlego08.koth.fastboard</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
@ -187,7 +191,7 @@
<dependency>
<groupId>com.github.UlrichBR</groupId>
<artifactId>UClansV7-API</artifactId>
<version>7.7.0-r1</version>
<version>7.13.0-R1</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -74,6 +74,10 @@
<pattern>com.cryptomorin.xseries</pattern>
<shadedPattern>fr.maxlego08.koth.xseries</shadedPattern>
</relocation>
<relocation>
<pattern>fr.mrmicky.fastboard</pattern>
<shadedPattern>fr.maxlego08.koth.fastboard</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
@ -150,7 +154,7 @@
<dependency>
<groupId>fr.mrmicky</groupId>
<artifactId>fastboard</artifactId>
<version>2.0.2</version>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>com.github.booksaw</groupId>

View File

@ -785,7 +785,7 @@ public class ZKoth extends ZUtils implements Koth {
string = string.replace("%centerY%", String.valueOf(centerLocation.getBlockY()));
string = string.replace("%centerZ%", String.valueOf(centerLocation.getBlockZ()));
return ColorTransformer.transformColors(string);
return string;
}
@Override

View File

@ -2,6 +2,7 @@ package fr.maxlego08.koth.hook.teams;
import fr.maxlego08.koth.KothPlugin;
import fr.maxlego08.koth.api.KothTeam;
import fr.maxlego08.koth.zcore.utils.ColorTransformer;
import me.ulrich.clans.Clans;
import me.ulrich.clans.data.ClanData;
import me.ulrich.clans.events.ClanDeleteEvent;
@ -28,7 +29,7 @@ public class UltimateClan implements KothTeam {
@Override
public String getTeamName(OfflinePlayer player) {
Optional<ClanData> optional = this.clans.getPlayerAPI().getPlayerClan(player.getUniqueId());
return optional.isPresent() ? optional.get().getTag() : player.getName();
return optional.isPresent() ? ColorTransformer.transformColors(optional.get().getTag()) : player.getName();
}
@Override

View File

@ -540,6 +540,9 @@ public abstract class ZUtils extends MessageUtils {
*/
protected String color(String message) {
if (message == null) return null;
message = ColorTransformer.transformColors(message);
if (NmsVersion.nmsVersion.isHexVersion()) {
Pattern pattern = Pattern.compile("#[a-fA-F0-9]{6}");
Matcher matcher = pattern.matcher(message);