Permalink
Browse files

Check for "NPC" instead of "npc" as documented by the citizens API docs

  • Loading branch information...
DarkArc committed Sep 23, 2014
1 parent b877f1c commit aba170c71c51dce40befee794c0b0f6dfd097302
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/commandbook/AFKComponent.java
@@ -216,7 +216,7 @@ public void run() {
final Player target = session.getPlayer();
if (target == null || !session.getPlayer().isValid()) continue;
- if (onlinePlayers != null && (target.hasMetadata("npc") || !onlinePlayers.contains(target))) {
+ if (onlinePlayers != null && (target.hasMetadata("NPC") || !onlinePlayers.contains(target))) {
continue;
}

0 comments on commit aba170c

Please sign in to comment.