This commit is contained in:
Jules 2020-07-30 10:31:20 +02:00
commit 526cf4afc4

View File

@ -1,5 +1,6 @@
package net.Indyuce.mmocore.comp.placeholder; package net.Indyuce.mmocore.comp.placeholder;
import net.asangarin.hexcolors.ColorParse;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;
import me.clip.placeholderapi.PlaceholderAPI; import me.clip.placeholderapi.PlaceholderAPI;
@ -13,6 +14,6 @@ public class PlaceholderAPIParser implements PlaceholderParser {
@Override @Override
public String parse(OfflinePlayer player, String string) { 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();
} }
} }