Interface ChatPluginManager
- All Known Subinterfaces:
DenyChatReasonHandler
- All Known Implementing Classes:
AccountCheckManager,ActionbarManager,AdManager,AnticheatManager,AntispamManager,BanManager,BanwaveManager,BossbarManager,ChatChannelsManager,ChatLogManager,ChatManager,ConfigurationManager,CustomSuffixManager,DatabaseManager,DiscordIntegrationManager,EventManager,F3ServerNameManager,FlatFileManager,FormattedChatManager,GUIManager,HoverInfoManager,InstantEmojisManager,IntegrationManager,IPLookupManager,JoinMessageManager,JoinTitleManager,KickManager,LanguageManager,LocalIPLookupManager,LogManager,MoTDManager,MuteManager,PingManager,PlaceholderManager,PlayerIgnoreManager,PlayerManager,PlayerPingManager,PrivateMessagesManager,ProxyManager,ProxyMessageManager,ProxyMoTDManager,ProxyPlayerManager,PunishmentManager,QuitMessageManager,RankManager,ScoreboardManager,ServerMoTDManager,ServerPlayerManager,StaffChatManager,StorageManager,SuggestedVersionManager,SwitchMessageManager,TablistManager,TaskManager,TelegramIntegrationManager,TPSManager,VanishManager,WarningManager,WelcomeMessageManager
public interface ChatPluginManager
Interface that represents one of the managers used by ChatPlugin.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancheckAvailability(boolean warnIfUnavailable) Checks if this manager specifies aGameFeatureannotation.static GameFeaturecheckInterfaces(Class<?> clazz) booleanChecks if this manager is enabled.default booleanChecks if this manager will be reloaded on a plugin reload.voidload()Loads (or reloads) this manager.default voidreload()Reloads this manager.default voidunload()Unloads this manager.
-
Method Details
-
load
Loads (or reloads) this manager.- Throws:
ChatPluginManagerException- If something goes wrong
-
unload
Unloads this manager.Will do nothing if this method is not overridden.
- Throws:
ChatPluginManagerException- If something goes wrong
-
reload
- Throws:
ChatPluginManagerException- If something goes wrong
-
isEnabled
boolean isEnabled()Checks if this manager is enabled.- Returns:
- Whether this manager is enabled
-
isReloadable
default boolean isReloadable()Checks if this manager will be reloaded on a plugin reload.Will return
trueif this method is not overridden.- Returns:
- Whether this manager is reloadable
-
checkAvailability
default boolean checkAvailability(boolean warnIfUnavailable) Checks if this manager specifies aGameFeatureannotation.In that case, if
(Environment.isProxy()== falseGameFeatures are not used on proxies), the feature's availability on the current environment is checked through three steps:- environment compatibility - whether the feature is available on Bukkit/Sponge
- Spigot requirement - whether the feature requires Spigot or a fork; Bukkit only
- minimum version - the minimum Vanilla version required to run the feature
- Parameters:
warnIfUnavailable- Whether to send a message if the feature is unavailable- Returns:
- Whether this manager's features may run on
Environment.getCurrent()
-
checkInterfaces
-