Skip to content

Commit

Permalink
Fix playerCommand not executing non-registered commands
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Aug 16, 2023
1 parent 96bec17 commit c3bdbca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main/java/de/oliver/fancynpcs/api/Npc.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void interact(Player player, boolean isAttack) {

FancyNpcsPlugin.get().getScheduler().runTask(
player.getLocation(),
() -> player.performCommand(command)
() -> player.chat("/" + command)
);
}
}
Expand Down

0 comments on commit c3bdbca

Please sign in to comment.