Package ovh.mythmc.social.api.user
Class SocialUserManager
java.lang.Object
ovh.mythmc.social.api.user.SocialUserManager
This class provides various user-related utilities.
Most methods in this class are used internally and shouldn't be used by external plugins unless necessary.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidannounceChannelSwitch(@NotNull SocialUser user, @NotNull ChatChannel channel) Announces aChatChannelswitch to theSocialUserand switches their main channel afterwards.voidDisables the companion mod features for a specificSocialUser.voidEnables the companion mod features for a specificSocialUser.booleanChecks if aSocialUseris muted across all channels.booleanisMuted(@NotNull SocialUser user, @NotNull ChatChannel channel) Checks if aSocialUseris muted in a specificChatChannel.voidmute(@NotNull SocialUser user, @NotNull ChatChannel channel) Mutes aSocialUserin a specificChatChannel.voidunmute(@NotNull SocialUser user, @NotNull ChatChannel channel) Unmutes aSocialUserin a specificChatChannel.
-
Field Details
-
instance
-
-
Constructor Details
-
SocialUserManager
public SocialUserManager()
-
-
Method Details
-
announceChannelSwitch
public void announceChannelSwitch(@NotNull @NotNull SocialUser user, @NotNull @NotNull ChatChannel channel) Announces aChatChannelswitch to theSocialUserand switches their main channel afterwards.- Parameters:
user- theSocialUserto send the message tochannel- theChatChannelto switch to
-
isGloballyMuted
Checks if aSocialUseris muted across all channels.- Parameters:
user- theSocialUserto check- Returns:
trueif theSocialUseris muted globally,falseotherwise
-
isMuted
Checks if aSocialUseris muted in a specificChatChannel.- Parameters:
user- theSocialUserto checkchannel- theChatChannelto check- Returns:
trueif theSocialUseris muted inChatChannel,falseotherwise
-
mute
Mutes aSocialUserin a specificChatChannel.- Parameters:
user- theSocialUserto mutechannel- theChatChannelwhere the user will be muted
-
unmute
Unmutes aSocialUserin a specificChatChannel.- Parameters:
user- theSocialUserto unmuetchannel- theChatChannelwhere the user will be unmuted
-
enableCompanion
Enables the companion mod features for a specificSocialUser.- Parameters:
user- theSocialUserto enable the companion features for
-
disableCompanion
Disables the companion mod features for a specificSocialUser.- Parameters:
user- theSocialUserto disable the companion features for
-