Skip to content

Commit

Permalink
Replace with name rather than fullname
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 19, 2023
1 parent 80329ab commit 57f454e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/api/npc/NPC.java
Expand Up @@ -142,7 +142,7 @@ public interface NPC extends Agent, Cloneable {
public int getId();

/**
* @see #getItemProvider()
* @see #setItemProvider()
*/
public Supplier<ItemStack> getItemProvider();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/api/util/Placeholders.java
Expand Up @@ -128,7 +128,7 @@ public static String replace(String text, CommandSender sender, NPC npc) {
replacement = Integer.toString(npc.getId());
break;
case "npc":
replacement = npc.getFullName();
replacement = npc.getName();
break;
case "owner":
replacement = npc.getOrAddTrait(Owner.class).getOwner();
Expand Down

0 comments on commit 57f454e

Please sign in to comment.