Package ovh.mythmc.social.api.adventure
Class SocialAdventureProvider
java.lang.Object
ovh.mythmc.social.api.adventure.SocialAdventureProvider
Provides Adventure
Audience objects that route messages to social
users and the console.
Platform adapters (e.g. Paper) register a concrete implementation on startup
via set(SocialAdventureProvider).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Audienceconsole()Returns the audience that wraps the server console.static @NotNull SocialAdventureProviderget()Returns the active adventure provider.static voidRegisters the active adventure provider.abstract Audienceuser(@NotNull SocialUser user) Returns the audience that wraps the given user.
-
Constructor Details
-
SocialAdventureProvider
public SocialAdventureProvider()
-
-
Method Details
-
set
Registers the active adventure provider.- Parameters:
s- the provider to register
-
get
Returns the active adventure provider.- Returns:
- the adventure provider
-
user
Returns the audience that wraps the given user.- Parameters:
user- the social user- Returns:
- the corresponding audience
-
console
Returns the audience that wraps the server console.- Returns:
- the console audience
-