Use CommandUtils.getOnlinePlayerNames(sender); here