From dba406e52b5e3e0152ef725c2f0b2764ef666b6b Mon Sep 17 00:00:00 2001 From: Brettflan Date: Thu, 30 Jun 2011 11:50:54 -0500 Subject: [PATCH] Fix for NPE on /f who command by in-game player --- src/org/mcteam/factions/commands/FBaseCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/mcteam/factions/commands/FBaseCommand.java b/src/org/mcteam/factions/commands/FBaseCommand.java index f1d8cd26..59f2e3b5 100644 --- a/src/org/mcteam/factions/commands/FBaseCommand.java +++ b/src/org/mcteam/factions/commands/FBaseCommand.java @@ -53,7 +53,7 @@ public class FBaseCommand { return; } - if (this.senderMustBePlayer) { + if (sender instanceof Player) { this.player = (Player)sender; this.me = FPlayer.get(this.player); }