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:
ljacqu
2015-12-30 18:28:06 +01:00
parent a3402d573f
commit 8b60c66cc8
10 changed files with 30 additions and 257 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ public class API {
}
PlayerAuth auth = PlayerAuth.builder()
.name(name)
.hash(encryptedPassword)
.password(encryptedPassword)
.lastLogin(0)
.realName(playerName)
.build();
@@ -155,7 +155,7 @@ public class NewAPI {
}
PlayerAuth auth = PlayerAuth.builder()
.name(name)
.hash(result)
.password(result)
.realName(playerName)
.build();
return plugin.getDataSource().saveAuth(auth);