Package ovh.mythmc.social.api
Interface Social
public interface Social
The central entry-point for the social plugin API.
Use get() to retrieve the running instance and registries()
to
access the shared registries for channels, announcements, emojis and
reactions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDescribes which parts of the plugin are affected by a reload operation. -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the activeSocialinstance.default @NotNull AnnouncementManagerReturns the singletonAnnouncementManager.default @NotNull ChatManagerReturns the singletonChatManager.Returns the configuration provider that exposes all plugin settings.Returns the logger used throughout the plugin.Returns the factory responsible for creating and managing chat reactions.default @NotNull GlobalTextProcessorReturns the singletonGlobalTextProcessorused to parse and send messages.default @NotNull SocialUserManagerReturns the singletonSocialUserManager.Returns the service used to retrieve all currently trackedSocialUserinstances.static @NotNull SocialRegistriesReturns the sharedSocialRegistriesthat hold all registered channels, announcements, emojis and reactions.voidreload(Social.ReloadType type) Triggers an internal reload of the specified type.version()Returns the current version string of the social plugin.
-
Method Details
-
get
Returns the activeSocialinstance.- Returns:
- the social API instance
-
registries
Returns the sharedSocialRegistriesthat hold all registered channels, announcements, emojis and reactions.- Returns:
- the global registries
-
reload
Triggers an internal reload of the specified type.- Parameters:
type- the parts of the plugin to reload
-
version
String version()Returns the current version string of the social plugin.- Returns:
- version string
-
getLogger
Returns the logger used throughout the plugin.- Returns:
- the logger wrapper
-
getConfig
Returns the configuration provider that exposes all plugin settings.- Returns:
- the config provider
-
getUserService
Returns the service used to retrieve all currently trackedSocialUserinstances.- Returns:
- the user service
-
getReactionFactory
Returns the factory responsible for creating and managing chat reactions.- Returns:
- the reaction factory
-
getAnnouncementManager
Returns the singletonAnnouncementManager.- Returns:
- the announcement manager
-
getUserManager
Returns the singletonSocialUserManager.- Returns:
- the user manager
-
getChatManager
Returns the singletonChatManager.- Returns:
- the chat manager
-
getTextProcessor
Returns the singletonGlobalTextProcessorused to parse and send messages.- Returns:
- the global text processor
-