Class ClientAuthenticationEvent
java.lang.Object
com.craftmend.openaudiomc.api.events.BaseEvent
com.craftmend.openaudiomc.api.events.CancellableEvent
com.craftmend.openaudiomc.api.events.client.ClientAuthenticationEvent
- All Implemented Interfaces:
Cancellable
This event is called before a client session is authenticated.
Cancelling this event will prevent the client from being authenticated and reload the web page.
Keep in mind that this event is run from the socket thread, and is blocking other clients from connecting.
-
Constructor Summary
ConstructorDescriptionClientAuthenticationEvent
(Actor actor, String token) This event is called when a client is attempting to authenticate -
Method Summary
Methods inherited from class com.craftmend.openaudiomc.api.events.CancellableEvent
isCancelled, setCancelled
-
Constructor Details
-
ClientAuthenticationEvent
This event is called when a client is attempting to authenticate- Parameters:
actor
- The actor that is trying to authenticatetoken
- The token that is being used
-
-
Method Details
-
getActor
-
getToken
-