Class AutoModule
java.lang.Object
net.flectone.pulse.module.message.auto.AutoModule
- All Implemented Interfaces:
ModuleListLocalization<Localization.Message.Auto>, ModuleLocalization<Localization.Message.Auto>, ModuleSimple
-
Constructor Summary
ConstructorsConstructorDescriptionAutoModule(FileFacade fileFacade, TaskScheduler taskScheduler, MessageDispatcher messageDispatcher, ModuleController moduleController, RandomGenerator randomUtil, SocialService socialService) -
Method Summary
Modifier and TypeMethodDescriptionconfig()getAvailableMessages(FPlayer fPlayer) intgetPlayerIndexOrDefault(int id, int defaultIndex) localization(FPlayer fPlayer) name()intnextInt(int start, int end) voidvoidonEnable()com.google.common.collect.ImmutableSet.Builder<PermissionSetting> voidsavePlayerIndex(int id, int playerIndex) voidsend(FPlayer fPlayer, String name, Message.Auto.Type type, org.apache.commons.lang3.tuple.Pair<Sound, PermissionSetting> sound) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModuleListLocalization
getCurrentMessage, getNextMessage, getNextMessage, joinMultiListMethods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, localization, sound, soundOrThrowMethods inherited from interface ModuleSimple
childrenBuilder, disablePredicate
-
Constructor Details
-
AutoModule
@Inject public AutoModule(FileFacade fileFacade, TaskScheduler taskScheduler, MessageDispatcher messageDispatcher, ModuleController moduleController, RandomGenerator randomUtil, SocialService socialService)
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceModuleSimple
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceModuleSimple
-
permissionBuilder
- Specified by:
permissionBuilderin interfaceModuleLocalization<Localization.Message.Auto>- Specified by:
permissionBuilderin interfaceModuleSimple
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Message.Auto>
-
getAvailableMessages
- Specified by:
getAvailableMessagesin interfaceModuleListLocalization<Localization.Message.Auto>
-
getPlayerIndexOrDefault
public int getPlayerIndexOrDefault(int id, int defaultIndex) - Specified by:
getPlayerIndexOrDefaultin interfaceModuleListLocalization<Localization.Message.Auto>
-
nextInt
public int nextInt(int start, int end) - Specified by:
nextIntin interfaceModuleListLocalization<Localization.Message.Auto>
-
savePlayerIndex
public void savePlayerIndex(int id, int playerIndex) - Specified by:
savePlayerIndexin interfaceModuleListLocalization<Localization.Message.Auto>
-
send
public void send(FPlayer fPlayer, String name, Message.Auto.Type type, org.apache.commons.lang3.tuple.Pair<Sound, PermissionSetting> sound)
-