Skip to content

Commit

Permalink
Use getFullName for placeholder NPC name
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jan 8, 2023
1 parent 366f5eb commit d085549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/api/util/Placeholders.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static String replace(String text, CommandSender sender, NPC npc) {
if (group.equals("id")) {
replacement = Integer.toString(npc.getId());
} else if (group.equals("npc")) {
replacement = npc.getName();
replacement = npc.getFullName();
} else if (group.equals("owner")) {
replacement = npc.getOrAddTrait(Owner.class).getOwner();
}
Expand Down

0 comments on commit d085549

Please sign in to comment.