mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
fix messages
This commit is contained in:
parent
84a9535123
commit
5a9d6dd60d
@ -50,6 +50,7 @@ public abstract class PlexModule
|
||||
|
||||
/**
|
||||
* Registers a PlexListener within a module
|
||||
*
|
||||
* @param listener The PlexListener to be registered
|
||||
*/
|
||||
public void registerListener(PlexListener listener)
|
||||
@ -59,6 +60,7 @@ public abstract class PlexModule
|
||||
|
||||
/**
|
||||
* Unregisters a PlexListener. Handled by Plex automatically
|
||||
*
|
||||
* @param listener The PlexListener to be registered
|
||||
*/
|
||||
public void unregisterListener(PlexListener listener)
|
||||
@ -69,6 +71,7 @@ public abstract class PlexModule
|
||||
|
||||
/**
|
||||
* Registers a PlexCommand within a module
|
||||
*
|
||||
* @param command The PlexCommand to be registered
|
||||
*/
|
||||
public void registerCommand(PlexCommand command)
|
||||
@ -78,6 +81,7 @@ public abstract class PlexModule
|
||||
|
||||
/**
|
||||
* Unregisters a PlexCommand. Handled by Plex automatically
|
||||
*
|
||||
* @param command The PlexCommand to be registered
|
||||
*/
|
||||
public void unregisterCommand(PlexCommand command)
|
||||
@ -92,6 +96,7 @@ public abstract class PlexModule
|
||||
|
||||
/**
|
||||
* Adds a message to the messages.yml file
|
||||
*
|
||||
* @param message The key value for the message
|
||||
* @param initValue The message itself
|
||||
*/
|
||||
@ -101,12 +106,13 @@ public abstract class PlexModule
|
||||
{
|
||||
plex.messages.set(message, initValue);
|
||||
plex.messages.save();
|
||||
PlexLog.debug("'{0}' message added from TFMExtras module", message);
|
||||
PlexLog.debug("'{0}' message added from " + plexModuleFile.getName(), message);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a message to the messages.yml with a comment
|
||||
*
|
||||
* @param message The key value for the message
|
||||
* @param initValue The message itself
|
||||
* @param comments The comments to be placed above the message
|
||||
@ -119,7 +125,7 @@ public abstract class PlexModule
|
||||
plex.messages.save();
|
||||
plex.messages.setComments(message, Arrays.asList(comments));
|
||||
plex.messages.save();
|
||||
PlexLog.debug("'{0}' message added from TFMExtras module", message);
|
||||
PlexLog.debug("'{0}' message added from " + plexModuleFile.getName(), message);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user