!Added 1.16 color support whenever parsing with PlaceholderAPIParser.java parse method.

This commit is contained in:
Ethan 2020-07-29 02:26:14 -04:00
parent 3928c688b3
commit 568b26be36

View File

@ -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();
}
}