From 568b26be367af4271a71294692157d7711f4001a Mon Sep 17 00:00:00 2001 From: Ethan Date: Wed, 29 Jul 2020 02:26:14 -0400 Subject: [PATCH] !Added 1.16 color support whenever parsing with PlaceholderAPIParser.java parse method. --- .../Indyuce/mmocore/comp/placeholder/PlaceholderAPIParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/comp/placeholder/PlaceholderAPIParser.java b/src/main/java/net/Indyuce/mmocore/comp/placeholder/PlaceholderAPIParser.java index 431110e4..1655affb 100644 --- a/src/main/java/net/Indyuce/mmocore/comp/placeholder/PlaceholderAPIParser.java +++ b/src/main/java/net/Indyuce/mmocore/comp/placeholder/PlaceholderAPIParser.java @@ -1,5 +1,6 @@ package net.Indyuce.mmocore.comp.placeholder; +import net.asangarin.hexcolors.ColorParse; import org.bukkit.OfflinePlayer; import me.clip.placeholderapi.PlaceholderAPI; @@ -11,6 +12,6 @@ public class PlaceholderAPIParser implements PlaceholderParser { @Override public String parse(OfflinePlayer player, String string) { - return PlaceholderAPI.setPlaceholders(player, string.replace("%player%", player.getName())); + return new ColorParse('&', PlaceholderAPI.setPlaceholders(player, string.replace("%player%", player.getName()))).toChatColor(); } }