Color code for attribute names

This commit is contained in:
ASangarin 2019-08-31 01:58:36 +01:00
parent ac57a8695d
commit 07bf1c78ae

View File

@ -6,6 +6,7 @@ import java.util.Set;
import java.util.logging.Level; import java.util.logging.Level;
import org.apache.commons.lang.Validate; import org.apache.commons.lang.Validate;
import org.bukkit.ChatColor;
import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.ConfigurationSection;
import net.Indyuce.mmocore.MMOCore; import net.Indyuce.mmocore.MMOCore;
@ -41,7 +42,7 @@ public class PlayerAttribute {
} }
public String getName() { public String getName() {
return name; return ChatColor.translateAlternateColorCodes('&', name);
} }
public boolean hasMax() { public boolean hasMax() {