mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 16:51:37 +00:00
Add new player flag.
This commit is contained in:
@@ -581,7 +581,7 @@ public final class Player extends Mob {
|
|||||||
*
|
*
|
||||||
* @return A flag indicating if the player is new.
|
* @return A flag indicating if the player is new.
|
||||||
*/
|
*/
|
||||||
public boolean isNewPlayer() {
|
public boolean isNew() {
|
||||||
return newPlayer;
|
return newPlayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public final class BinaryPlayerLoader implements PlayerLoader {
|
|||||||
if (!name.equalsIgnoreCase(credentials.getUsername()) || !SCryptUtil.check(credentials.getPassword(), pass)) {
|
if (!name.equalsIgnoreCase(credentials.getUsername()) || !SCryptUtil.check(credentials.getPassword(), pass)) {
|
||||||
return new PlayerLoaderResponse(LoginConstants.STATUS_INVALID_CREDENTIALS);
|
return new PlayerLoaderResponse(LoginConstants.STATUS_INVALID_CREDENTIALS);
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the credentials password to the scrypted one
|
// set the credentials password to the scrypted one
|
||||||
credentials.setPassword(pass);
|
credentials.setPassword(pass);
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public final class BinaryPlayerSaver implements PlayerSaver {
|
|||||||
out.writeByte(position.getHeight());
|
out.writeByte(position.getHeight());
|
||||||
|
|
||||||
// write appearance
|
// write appearance
|
||||||
out.writeBoolean(player.isNewPlayer());
|
out.writeBoolean(player.isNew());
|
||||||
Appearance appearance = player.getAppearance();
|
Appearance appearance = player.getAppearance();
|
||||||
out.writeByte(appearance.getGender().toInteger());
|
out.writeByte(appearance.getGender().toInteger());
|
||||||
int[] style = appearance.getStyle();
|
int[] style = appearance.getStyle();
|
||||||
|
|||||||
Reference in New Issue
Block a user