Skip to content

Commit

Permalink
Chat Trigger ignores cancelled PlayerChatEvents.
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Apr 1, 2013
1 parent 58bfe77 commit ec33b06
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -32,6 +32,8 @@ public void onEnable() {
@EventHandler
public void chatTrigger(AsyncPlayerChatEvent event) {

if (event.isCancelled()) return;

// Check if there is an NPC within range of a player to chat to.
dNPC npc = Utilities.getClosestNPC(event.getPlayer().getLocation(), 25);

Expand Down

0 comments on commit ec33b06

Please sign in to comment.