Class ClientPeerAddEvent
java.lang.Object
com.craftmend.openaudiomc.api.events.BaseEvent
com.craftmend.openaudiomc.api.events.ClientEvent
com.craftmend.openaudiomc.api.events.CancellableClientEvent
com.craftmend.openaudiomc.api.events.client.ClientPeerAddEvent
- All Implemented Interfaces:
Cancellable
This event is called whenever a peer is being added to the client, and can be cancelled to prevent the peer from being added.
This is useful to set up single-sided voice connections, without having to implement a filter.
-
Constructor Summary
ConstructorDescriptionClientPeerAddEvent
(Client client, Client peer, VoicePeerOptions options) Create a new client event -
Method Summary
Methods inherited from class com.craftmend.openaudiomc.api.events.CancellableClientEvent
isCancelled, setCancelled
Methods inherited from class com.craftmend.openaudiomc.api.events.ClientEvent
getClient
-
Constructor Details
-
ClientPeerAddEvent
Create a new client event- Parameters:
client
- the client that this event is aboutpeer
- the peer that was addedoptions
- the options that were used to add the peer
-
-
Method Details
-
getPeer
-
getOptions
-
setOptions
-