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 |
|---|---|
@NonNull String |
getName()
Gets the name of this provider.
|
@NonNull Messenger |
obtain(@NonNull IncomingMessageConsumer incomingMessageConsumer)
Creates and returns a new
Messenger instance, which passes
incoming messages to the provided IncomingMessageConsumer. |
@NonNull String getName()
@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 to