Test for updateActivity all the time in PlayerCommandPreprocessEvent.

This commit is contained in:
Ali Moghnieh 2016-01-30 14:08:11 +00:00
parent 7809615896
commit ba5ce33464

View file

@ -384,7 +384,8 @@ public class EssentialsPlayerListener implements Listener {
}
}
}
} else {
}
boolean broadcast = true; // whether to broadcast the updated activity
boolean update = true; // Only modified when the command is afk
@ -403,7 +404,6 @@ public class EssentialsPlayerListener implements Listener {
user.updateActivity(broadcast);
}
}
}
@EventHandler(priority = EventPriority.NORMAL)
public void onPlayerChangedWorldFlyReset(final PlayerChangedWorldEvent event) {