Minor - adjust PlayerAuth builder methods
- Rename hash() to password() - Add location(Location) builder method - Replace usages of password(new EncryptedPassword(hash, salt)) to the more terse password(String, String) builder method
This commit is contained in:
@@ -62,7 +62,7 @@ public class RegisterAdminCommand implements ExecutableCommand {
|
||||
PlayerAuth auth = PlayerAuth.builder()
|
||||
.name(playerNameLowerCase)
|
||||
.realName(playerName)
|
||||
.hash(encryptedPassword)
|
||||
.password(encryptedPassword)
|
||||
.build();
|
||||
|
||||
if (!commandService.getDataSource().saveAuth(auth)) {
|
||||
|
||||
Reference in New Issue
Block a user