Package dev.plex.module
Class PlexModule
java.lang.Object
dev.plex.module.PlexModule
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<PlexCommand>
private File
private final List<PlexListener>
private org.apache.logging.log4j.Logger
private Plex
private PlexModuleFile
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
void
enable()
getCommand
(String name) @Nullable InputStream
getResource
(@NotNull String filename) void
load()
void
registerCommand
(PlexCommand command) void
registerListener
(PlexListener listener) void
unregisterCommand
(PlexCommand command) void
unregisterListener
(PlexListener listener)
-
Field Details
-
commands
-
listeners
-
plex
-
plexModuleFile
-
dataFolder
-
logger
private org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
PlexModule
public PlexModule()
-
-
Method Details
-
load
public void load() -
enable
public void enable() -
disable
public void disable() -
registerListener
-
unregisterListener
-
registerCommand
-
unregisterCommand
-
getCommand
-
getResource
-