public interface PlayerAuth
Modifier and Type | Method and Description |
---|---|
boolean |
canSkipAuth()
Checks whether player is a fake player (from CarpetMod).
|
net.minecraft.text.Text |
getAuthMessage()
Gets the text which tells the player
to login or register, depending on account status.
|
java.lang.String |
getFakeUuid()
Converts player uuid, to ensure player with "nAmE" and "NamE" get same uuid.
|
void |
hidePosition(boolean hide)
Teleports player to spawn or last location that is recorded.
|
boolean |
isAuthenticated()
Checks whether player is authenticated.
|
boolean |
isUsingMojangAccount()
Whether the player is using the mojang account
|
void |
setAuthenticated(boolean authenticated)
Sets the authentication status of the player.
|
void hidePosition(boolean hide)
hide
- whether to teleport player to spawn (provided in config) or last recorded positionjava.lang.String getFakeUuid()
void setAuthenticated(boolean authenticated)
authenticated
- whether player should be authenticatedboolean isAuthenticated()
net.minecraft.text.Text getAuthMessage()
boolean canSkipAuth()
boolean isUsingMojangAccount()