Package fr.Alphart.BAT.Modules
Class ModuleConfiguration
java.lang.Object
net.cubespace.Yamler.Config.BaseConfig
net.cubespace.Yamler.Config.BaseConfigMapper
net.cubespace.Yamler.Config.ConfigMapper
net.cubespace.Yamler.Config.YamlConfig
fr.Alphart.BAT.Modules.ModuleConfiguration
- All Implemented Interfaces:
net.cubespace.Yamler.Config.IConfig
- Direct Known Subclasses:
Ban.BanConfig
,Comment.CommentConfig
,Kick.KickConfig
,Mute.MuteConfig
public abstract class ModuleConfiguration
extends net.cubespace.Yamler.Config.YamlConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the names of the enabled commands for this modulevoid
void
initThrowingExceptions
(String moduleName) UnlikeYamlConfig.init()
this init method throw the exception and doesn't print it in the consolevoid
setProvidedCmds
(List<String> cmds) Add commands provided by this module into the configuration fileMethods inherited from class net.cubespace.Yamler.Config.YamlConfig
init, init, load, load, reload, save, save
Methods inherited from class net.cubespace.Yamler.Config.ConfigMapper
loadFromMap, saveToMap
Methods inherited from class net.cubespace.Yamler.Config.BaseConfigMapper
addComment, clearComments
Methods inherited from class net.cubespace.Yamler.Config.BaseConfig
addConverter, update
-
Constructor Details
-
ModuleConfiguration
public ModuleConfiguration()
-
-
Method Details
-
init
-
initThrowingExceptions
public void initThrowingExceptions(String moduleName) throws net.cubespace.Yamler.Config.InvalidConfigurationException UnlikeYamlConfig.init()
this init method throw the exception and doesn't print it in the console- Throws:
net.cubespace.Yamler.Config.InvalidConfigurationException
-
getEnabledCmds
Get the names of the enabled commands for this module- Returns:
- list of the enabled commands
-
setProvidedCmds
Add commands provided by this module into the configuration file- Parameters:
commands
- list
-