public interface MessengerProvider
Messenger instances.
Users wishing to provide their own implementation for the plugins "Messaging Service" should implement and register this interface.
LuckPermsApi.registerMessengerProvider(MessengerProvider)| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of this provider.
|
Messenger |
obtain(IncomingMessageConsumer incomingMessageConsumer)
Creates and returns a new
Messenger instance, which passes
incoming messages to the provided IncomingMessageConsumer. |
@Nonnull Messenger obtain(@Nonnull IncomingMessageConsumer incomingMessageConsumer)
Messenger instance, which passes
incoming messages to the provided IncomingMessageConsumer.
As the agent should pass incoming messages to the given consumer, this method should always return a new object.
incomingMessageConsumer - the consumer the new instance should pass
incoming messages toCopyright © 2018. All rights reserved.