From a8e27850423e6dfd28efc4f4efc726fb64ce9072 Mon Sep 17 00:00:00 2001 From: Yomamaeatstoes Date: Wed, 4 Oct 2023 15:31:13 -0400 Subject: [PATCH 1/3] Upstreamed --- .../us/thezircon/play/silkyspawnerslite/utils/HexFormat.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/us/thezircon/play/silkyspawnerslite/utils/HexFormat.java b/src/main/java/us/thezircon/play/silkyspawnerslite/utils/HexFormat.java index 5746d63..7db4602 100644 --- a/src/main/java/us/thezircon/play/silkyspawnerslite/utils/HexFormat.java +++ b/src/main/java/us/thezircon/play/silkyspawnerslite/utils/HexFormat.java @@ -11,7 +11,9 @@ public class HexFormat { private static final Pattern pattern = Pattern.compile("&#[a-fA-F0-9]{6}"); public static String format(String msg) { - if (Bukkit.getVersion().contains("1.17") || Bukkit.getVersion().contains("1.16") || Bukkit.getVersion().contains("1.18") || Bukkit.getVersion().contains("1.19")|| Bukkit.getVersion().contains("1.20")) { + String[] split = Bukkit.getBukkitVersion().split("-")[0].split("\\."); + String minorVer = split[1]; //For 1.10 will be "10" + if (Integer.parseInt(minorVer) >= 16) { Matcher match = pattern.matcher(msg); while (match.find()) { String color = msg.substring(match.start(), match.end()); From 51a0ef71390d23f8a0fbfeb3abf4479b82cb9285 Mon Sep 17 00:00:00 2001 From: Yomamaeatstoes <114538961+Yomamaeatstoes@users.noreply.github.com> Date: Fri, 20 Oct 2023 20:42:19 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index bcd1eae..decaf2a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ ![Spiget Version](https://img.shields.io/spiget/version/76103) +Folia Inquistors + +[Yomamaeatstoes](https://github.com/Yomamaeatstoes) +[HSGamer](https://github.com/HSGamer) + Click [Here](https://www.spigotmc.org/resources/silky-spawners-lite-silk-touch-your-spawners-silk-spawners.76103/) to view on spigot! ![bStats](https://bstats.org/signatures/bukkit/SilkySpawnersLITE.svg) From e2dd4b5151db1c32ec7831c57411dbe367e1d43e Mon Sep 17 00:00:00 2001 From: Yomamaeatstoes <114538961+Yomamaeatstoes@users.noreply.github.com> Date: Fri, 20 Oct 2023 20:55:02 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index decaf2a..4eb8c81 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,11 @@ Folia Inquistors +[Folia-Inquisitors](https://github.com/orgs/Folia-Inquisitors/repositories) [Yomamaeatstoes](https://github.com/Yomamaeatstoes) [HSGamer](https://github.com/HSGamer) + Click [Here](https://www.spigotmc.org/resources/silky-spawners-lite-silk-touch-your-spawners-silk-spawners.76103/) to view on spigot! ![bStats](https://bstats.org/signatures/bukkit/SilkySpawnersLITE.svg)