Skip to content

Commit

Permalink
Make getFullName() return placeholder/coloured name
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed May 4, 2020
1 parent a1f80d7 commit 42838ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/citizensnpcs/api/npc/AbstractNPC.java
Expand Up @@ -40,6 +40,7 @@
import net.citizensnpcs.api.util.DataKey;
import net.citizensnpcs.api.util.MemoryDataKey;
import net.citizensnpcs.api.util.Messaging;
import net.citizensnpcs.api.util.Placeholders;

public abstract class AbstractNPC implements NPC {
private final GoalController goalController = new SimpleGoalController();
Expand Down Expand Up @@ -207,7 +208,7 @@ public String getFullName() {
"to", name.substring(0, nameLength));
name = name.substring(0, nameLength);
}
return name;
return Placeholders.replace(Colorizer.parseColors(name), null, this);
}

@Override
Expand Down

0 comments on commit 42838ce

Please sign in to comment.