mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 07:59:44 +00:00
Add reset color code before name (duplicate legacy vanilla behavior)
This commit is contained in:
parent
37d4dc70e5
commit
5375ff3790
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue