mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-08 09:27:40 +01:00
Add some skinTrait debug
This commit is contained in:
parent
5003f0c367
commit
71ad607732
@ -11,6 +11,7 @@ import net.citizensnpcs.api.persistence.Persist;
|
||||
import net.citizensnpcs.api.trait.Trait;
|
||||
import net.citizensnpcs.api.trait.TraitName;
|
||||
import net.citizensnpcs.api.util.DataKey;
|
||||
import net.citizensnpcs.api.util.Messaging;
|
||||
import net.citizensnpcs.api.util.Placeholders;
|
||||
import net.citizensnpcs.npc.skin.Skin;
|
||||
import net.citizensnpcs.npc.skin.SkinnableEntity;
|
||||
@ -38,6 +39,7 @@ public class SkinTrait extends Trait {
|
||||
if (skinName == null)
|
||||
return;
|
||||
String filled = ChatColor.stripColor(Placeholders.replace(skinName, null, npc).toLowerCase());
|
||||
Messaging.debug("Filled skin placeholder", filled, "from", skinName);
|
||||
if (!filled.equalsIgnoreCase(skinName) && !filled.equalsIgnoreCase(filledPlaceholder)) {
|
||||
filledPlaceholder = filled;
|
||||
if (update) {
|
||||
|
Loading…
Reference in New Issue
Block a user