class NewAPI {

    public boolean registerPlayer(String playerName, String password) {
        String name = playerName.toLowerCase();
        if (isRegistered(name)) {
            return false;
        }
        HashedPassword result = passwordSecurity.computeHash(password, name);
        PlayerAuth auth = PlayerAuth.builder()
            .name(name)
            .password(result)
            .realName(playerName)
            .registrationDate(System.currentTimeMillis())
            .build();
        return dataSource.saveAuth(auth);
    }

    @Inject  NewAPI(AuthMe plugin, DataSource dataSource, PasswordSecurity passwordSecurity,
           Management management, ValidationService validationService, PlayerCache playerCache);

}