forked from Upstream/mmocore
Merge branch 'master' of https://Indyuce@git.lumine.io/mmoteam/mmocore.git
This commit is contained in:
commit
526cf4afc4
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user