Class BrandModule
java.lang.Object
net.flectone.pulse.module.message.brand.BrandModule
- All Implemented Interfaces:
ModuleListLocalization<Localization.Message.Brand>, ModuleLocalization<Localization.Message.Brand>, ModuleSimple
public class BrandModule
extends Object
implements ModuleListLocalization<Localization.Message.Brand>
-
Constructor Summary
ConstructorsConstructorDescriptionBrandModule(FileFacade fileFacade, TaskScheduler taskScheduler, ListenerRegistry listenerRegistry, 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()voidsavePlayerIndex(int id, int playerIndex) voidMethods 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, permissionBuilder, sound, soundOrThrowMethods inherited from interface ModuleSimple
childrenBuilder, disablePredicate
-
Constructor Details
-
BrandModule
@Inject public BrandModule(FileFacade fileFacade, TaskScheduler taskScheduler, ListenerRegistry listenerRegistry, 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
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Message.Brand>
-
getAvailableMessages
- Specified by:
getAvailableMessagesin interfaceModuleListLocalization<Localization.Message.Brand>
-
getPlayerIndexOrDefault
public int getPlayerIndexOrDefault(int id, int defaultIndex) - Specified by:
getPlayerIndexOrDefaultin interfaceModuleListLocalization<Localization.Message.Brand>
-
nextInt
public int nextInt(int start, int end) - Specified by:
nextIntin interfaceModuleListLocalization<Localization.Message.Brand>
-
savePlayerIndex
public void savePlayerIndex(int id, int playerIndex) - Specified by:
savePlayerIndexin interfaceModuleListLocalization<Localization.Message.Brand>
-
send
-