From 5375ff37906ebf27400291428020660bdd813b4f Mon Sep 17 00:00:00 2001 From: vemacs Date: Tue, 2 Jun 2015 14:02:08 -0600 Subject: [PATCH] Add reset color code before name (duplicate legacy vanilla behavior) --- Essentials/src/com/earth2me/essentials/utils/SpawnerUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/utils/SpawnerUtil.java b/Essentials/src/com/earth2me/essentials/utils/SpawnerUtil.java index 7a8bd9d31..3dcf41413 100644 --- a/Essentials/src/com/earth2me/essentials/utils/SpawnerUtil.java +++ b/Essentials/src/com/earth2me/essentials/utils/SpawnerUtil.java @@ -2,6 +2,7 @@ package com.earth2me.essentials.utils; import com.google.common.collect.ImmutableMap; import net.ess3.api.IEssentials; +import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.block.BlockState; import org.bukkit.block.CreatureSpawner; @@ -61,7 +62,7 @@ public class SpawnerUtil { } else { displayName = type.getName(); } - meta.setDisplayName(displayName + " Spawner"); + meta.setDisplayName(ChatColor.RESET + displayName + " Spawner"); is.setItemMeta(meta); return is; }