diff --git a/pom.xml b/pom.xml index d462bf8..91a4608 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 io.github.schntgaispock.slimehud SlimeHUD - 1.3.0 + 1.3.1 17 @@ -12,6 +12,11 @@ + + placeholderapi + https://repo.extendedclip.com/content/repositories/placeholderapi/ + + paper-repo https://repo.destroystokyo.com/repository/maven-public/ @@ -26,11 +31,6 @@ jitpack.io https://jitpack.io - - - placeholderapi - https://repo.extendedclip.com/content/repositories/placeholderapi/ - @@ -49,10 +49,22 @@ + + org.apache.maven.plugins + maven-compiler-plugin + 3.12.1 + + + + **/package-info.java + + + + org.apache.maven.plugins maven-shade-plugin - 3.3.0 + 3.5.1 true @@ -125,13 +137,7 @@ org.projectlombok lombok 1.18.34 - - - - javax.annotation - javax.annotation-api - 1.3.2 - compile + provided @@ -143,7 +149,7 @@ org.bstats bstats-bukkit - 3.0.0 + 3.0.2 compile @@ -157,7 +163,7 @@ net.guizhanss GuizhanLibPlugin - 1.7.0 + 2.1.0 provided diff --git a/src/main/java/io/github/schntgaispock/slimehud/waila/HudController.java b/src/main/java/io/github/schntgaispock/slimehud/waila/HudController.java index 2f1a27f..f8dd922 100644 --- a/src/main/java/io/github/schntgaispock/slimehud/waila/HudController.java +++ b/src/main/java/io/github/schntgaispock/slimehud/waila/HudController.java @@ -233,7 +233,13 @@ public String processRequest(@Nonnull HudRequest request) { return ""; } else { String ret = handler.apply(request); - return ret == null ? "" : ret; + if (ret == null) return ""; + if (ret.startsWith("&7| ")) { + ret = ret.replaceFirst("&7\\| ", "&7"); + } else if (ret.startsWith("§7| ")) { + ret = ret.replaceFirst("§7\\| ", "&7"); + } + return ret; } }