Skip to content

Commit

Permalink
Fix subject name coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
xethlyx committed Jun 17, 2021
1 parent ab5c34f commit 44f65df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.xethlyx.plugins.xenchant.XEnchant;
import com.xethlyx.plugins.xenchant.util.EnchantUtil;
import org.bukkit.ChatColor;
import org.bukkit.attribute.Attribute;
import org.bukkit.attribute.AttributeInstance;
import org.bukkit.block.Block;
Expand Down Expand Up @@ -88,7 +89,7 @@ void spawnZenithSubject(Player player, LivingEntity target) {

Vex subject = (Vex) player.getWorld().spawnEntity(player.getLocation(), EntityType.VEX);
subject.setTarget(target);
subject.setCustomName(player.getDisplayName() + "'s Zenith");
subject.setCustomName(player.getDisplayName() + ChatColor.GRAY + "'s Zenith");

AttributeInstance subjectAttribute = subject.getAttribute(Attribute.GENERIC_ATTACK_DAMAGE);
AttributeInstance playerAttribute = player.getAttribute(Attribute.GENERIC_ATTACK_DAMAGE);
Expand Down

0 comments on commit 44f65df

Please sign in to comment.