Skip to content
Permalink
Browse files
Improve clarity of player event warning.
Saying it's "missing" is misleading, and the cause is unlikely to be an NPC anymore.
  • Loading branch information
PseudoKnight committed Apr 8, 2020
1 parent 15614fd commit ef32fe0dd796ac5213840b75356113a4f22c17af
Showing 1 changed file with 1 addition and 1 deletion.
@@ -115,7 +115,7 @@ public final void execute(ParseTree tree, BoundEvent b, Environment env, BoundEv
if(p != null) {
env.getEnv(CommandHelperEnvironment.class).SetPlayer((MCPlayer) p);
} else {
Static.getLogger().log(Level.WARNING, "Player missing in player event (NPC?): " + b.getEventName());
Static.getLogger().log(Level.WARNING, "Player offline for event: " + b.getEventName());
// Set env CommandSender to prevent incorrect inherited player from being used in a player event.
if(env.getEnv(CommandHelperEnvironment.class).GetPlayer() != null) {
env.getEnv(CommandHelperEnvironment.class).SetCommandSender(Static.getServer().getConsole());

0 comments on commit ef32fe0

Please sign in to comment.