private boolean isValidPlayer(Entity entity) {
        boolean isValidPlayer = false;
        
        if (entity instanceof Player) {
            boolean isNPC = false;
            
            if (plugin.cititzensPlugin != null) {
                try {
                    isNPC = plugin.cititzensPlugin.getDescription().getVersion().startsWith("2") ?
                            CitizensAPI.getNPCRegistry().isNPC(entity) : CitizensManager.isNPC(entity);
                } catch (NumberFormatException e) {
                    // move along, nothing to see here :)
                }
            }
            
            isValidPlayer = isNPC ? false : true;
        }
        
        return isValidPlayer;
    }