Package fr.Alphart.BAT.Modules.Comment
Class Comment
java.lang.Object
fr.Alphart.BAT.Modules.Comment.Comment
- All Implemented Interfaces:
IModule
-
Nested Class Summary
-
Field Summary
Fields inherited from interface fr.Alphart.BAT.Modules.IModule
ANY_SERVER, GLOBAL_SERVER, NO_REASON, OFF_STATE, ON_STATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclearComments
(String entity, int commentID) Clear all the comments and warning of an entity or the specified oneGet commands used by this modulegetComments
(String entity) Get the notes relative to an entityGet the configuration section of this moduleGet main command namegetManagedComments
(String staff) getName()
void
insertComment
(String entity, String comment, CommentEntry.Type type, String author) boolean
load()
Load the moduleboolean
unload()
Unload the module
-
Constructor Details
-
Comment
-
-
Method Details
-
getCommands
Description copied from interface:IModule
Get commands used by this module- Specified by:
getCommands
in interfaceIModule
- Returns:
- list of commands
-
getName
-
getMainCommand
Description copied from interface:IModule
Get main command name- Specified by:
getMainCommand
in interfaceIModule
- Returns:
- name of the main command without a slash
-
getConfig
Description copied from interface:IModule
Get the configuration section of this module -
load
public boolean load()Description copied from interface:IModule
Load the module -
unload
public boolean unload()Description copied from interface:IModule
Unload the module -
getComments
Get the notes relative to an entity- Parameters:
entity
- | can be an ip or a player name- Returns:
-
getManagedComments
-
insertComment
-
clearComments
Clear all the comments and warning of an entity or the specified one- Parameters:
entity
-commentID
- | use -1 to remove all the comments- Returns:
-