Dispatched when the ClientManager is informed by Union Server that a client address was banned. This event is available when the ClientManager is watching for banned addresses only (see watchForBannedAddresses()).
Dispatched when the ClientManager is informed by Union Server that a client address was unbanned. This event is available when the ClientManager is watching for banned addresses only (see watchForBannedAddresses()).
Dispatched when the result of an earlier Client.ban or ClientManager.ban request is received.
Dispatched when the ClientManager is informed by Union Server that a client connected. This event is available when the ClientManager is watching for clients only (see watchForClients()).
Dispatched when the ClientManager is informed by Union Server that a client disconnected. This event is available when the ClientManager is watching for clients (see watchForClients()) or observing the client that disconnected (see observeClient()) only.
Dispatched when the result of an earlier Client.kick or ClientManager.kickClient request is received.
Dispatched when the result of an earlier call to ClientManager.stopWatchingForBannedAddresses is received.
Dispatched when the ClientManager receives the result of an earlier stopWatchingForClients() request.
To determine the result of the attempt, use getStatus(), which has the following possible return values:
Dispatched when the ClientManager's list of clients has finished being synchronized after a watchForClients() request.
Dispatched when the ClientManager's list of clients has finished being synchronized after a watchForBannedAddresses() request.
Dispatched when the result of an earlier ClientManager.unban() request is received.
Dispatched when the result of an earlier call to ClientManager.watchForBannedAddresses is received.
Dispatched when the ClientManager receives the result of an earlier watchForClients() request.
To determine the result of the request, use getStatus(), which has the following possible return values:
Returns an address that was either banned or unbanned. This method applies to the following events:
Returns the Client object for the client to which this event pertains. For example, for the ClientManagerEvent.CLIENT_DISCONNECTED event, getClient() returns the Client object for the client that disconnected.
Returns the clientID of the client to which this event pertains. For example, for the ClientManagerEvent.CLIENT_CONNECTED event, getClientID() returns the clientID of the client that connected.
Returns the status of the client-management operation to which this event pertains.
The getStatus() method's return value is always one of the Status class's constants. For example, getStatus() might return the value of Status.SUCCESS.
For a list of specific status values that are available for a particular ClientManagerEvent event, see that event's documentation.
ClientManagerEvent is a simple data class used to pass information from an application's ClientManager to registered event-listeners when a client-management event occurs. The ClientManagerEvent class also defines constants representing the available client-management events.