class GetEmailCommand implements ExecutableCommand {

    @Override
    public void executeCommand(CommandSender sender, List<String> arguments) {
        String playerName = arguments.isEmpty() ? sender.getName() : arguments.get(0);

        DataSourceValue<String> email = dataSource.getEmail(playerName);
        if (email.rowExists()) {
            sender.sendMessage("[AuthMe] " + playerName + "'s email: " + email.getValue());
        } else {
            commonService.send(sender, MessageKey.UNKNOWN_USER);
        }
    }

}