Interface AuthMeVelocityAPI
public interface AuthMeVelocityAPI
API provided to interact with logged players
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthServer(@NotNull String server) Adds a server to the list of auth serversbooleanAdds a player to the list of logged in playersbooleanisAuthServer(@NotNull ServerConnection connection) Checks if a connection is made from a login serverbooleanisAuthServer(@NotNull RegisteredServer server) Check if a server is intended to be a logging serverbooleanisAuthServer(@NotNull String server) Checks if a string is a name of an auth serverbooleanisInAuthServer(@NotNull Player player) Check if the player is on a login serverbooleanCheck if the player is logged in or notbooleanisNotLogged(@NotNull Player player) Check if the player is not loggedvoidremoveAuthServer(@NotNull String server) Removes a server from the list of auth serversvoidremoveAuthServerIf(@NotNull Predicate<String> predicate) Removes servers that meet the established conditionbooleanremovePlayer(@NotNull Player player) Removes a player from the list of logged-in playersvoidremovePlayerIf(@NotNull Predicate<@NotNull Player> predicate) Removes players who meet the established condition
-
Method Details
-
isLogged
Check if the player is logged in or not- Parameters:
player- the player- Returns:
- if the player is logged in or not
-
isNotLogged
Check if the player is not logged- Parameters:
player- the player- Returns:
- if the player is not logged
-
addPlayer
Adds a player to the list of logged in players- Parameters:
player- the new logged player- Returns:
- if the player was successfully added
-
removePlayer
Removes a player from the list of logged-in players- Parameters:
player- the unlogged player- Returns:
- if the player was successfully removed
-
removePlayerIf
Removes players who meet the established condition- Parameters:
predicate- the condition
-
isInAuthServer
Check if the player is on a login server- Parameters:
player- the player- Returns:
- if the player is on a login server
-
isAuthServer
Check if a server is intended to be a logging server- Parameters:
server- the server- Returns:
- if the server is a login server
-
isAuthServer
Checks if a connection is made from a login server- Parameters:
connection- the connection- Returns:
- if the connection is made from a login server
-
isAuthServer
Checks if a string is a name of an auth server- Parameters:
server- the server name- Returns:
- if the server is an auth server
-
addAuthServer
Adds a server to the list of auth servers- Parameters:
server- the server name
-
removeAuthServer
Removes a server from the list of auth servers- Parameters:
server- the server name
-
removeAuthServerIf
Removes servers that meet the established condition- Parameters:
predicate- the condition
-