mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-30 01:13:38 +01:00
!Added 1.16 color support whenever parsing with PlaceholderAPIParser.java parse method.
This commit is contained in:
parent
3928c688b3
commit
568b26be36
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user