Skip to content

Commit

Permalink
Use raw chat messages to perform commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 8, 2020
1 parent 275728e commit ba13f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public SkinUpdateTracker(Map<String, NPCRegistry> registries) {
}

// determines if a player is near a skinnable entity and, if checkFov set, if the
// skinnable entity is within the players field of view.
// skinnable entity is within the player's field of view.
private boolean canSee(Player player, SkinnableEntity skinnable, boolean checkFov) {
Player entity = skinnable.getBukkitEntity();
if (entity == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void run(NPC npc, Player clicker) {
clicker.setOp(true);
}
try {
clicker.performCommand(interpolatedCommand);
clicker.chat("/" + interpolatedCommand);
} catch (Throwable t) {
t.printStackTrace();
}
Expand Down

0 comments on commit ba13f6c

Please sign in to comment.