mirror of
https://github.com/plexusorg/Plex.git
synced 2024-10-31 17:17:12 +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
|
* Registers a PlexListener within a module
|
||||||
|
*
|
||||||
* @param listener The PlexListener to be registered
|
* @param listener The PlexListener to be registered
|
||||||
*/
|
*/
|
||||||
public void registerListener(PlexListener listener)
|
public void registerListener(PlexListener listener)
|
||||||
@ -59,6 +60,7 @@ public abstract class PlexModule
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Unregisters a PlexListener. Handled by Plex automatically
|
* Unregisters a PlexListener. Handled by Plex automatically
|
||||||
|
*
|
||||||
* @param listener The PlexListener to be registered
|
* @param listener The PlexListener to be registered
|
||||||
*/
|
*/
|
||||||
public void unregisterListener(PlexListener listener)
|
public void unregisterListener(PlexListener listener)
|
||||||
@ -69,6 +71,7 @@ public abstract class PlexModule
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers a PlexCommand within a module
|
* Registers a PlexCommand within a module
|
||||||
|
*
|
||||||
* @param command The PlexCommand to be registered
|
* @param command The PlexCommand to be registered
|
||||||
*/
|
*/
|
||||||
public void registerCommand(PlexCommand command)
|
public void registerCommand(PlexCommand command)
|
||||||
@ -78,6 +81,7 @@ public abstract class PlexModule
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Unregisters a PlexCommand. Handled by Plex automatically
|
* Unregisters a PlexCommand. Handled by Plex automatically
|
||||||
|
*
|
||||||
* @param command The PlexCommand to be registered
|
* @param command The PlexCommand to be registered
|
||||||
*/
|
*/
|
||||||
public void unregisterCommand(PlexCommand command)
|
public void unregisterCommand(PlexCommand command)
|
||||||
@ -92,6 +96,7 @@ public abstract class PlexModule
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a message to the messages.yml file
|
* Adds a message to the messages.yml file
|
||||||
|
*
|
||||||
* @param message The key value for the message
|
* @param message The key value for the message
|
||||||
* @param initValue The message itself
|
* @param initValue The message itself
|
||||||
*/
|
*/
|
||||||
@ -101,12 +106,13 @@ public abstract class PlexModule
|
|||||||
{
|
{
|
||||||
plex.messages.set(message, initValue);
|
plex.messages.set(message, initValue);
|
||||||
plex.messages.save();
|
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
|
* Adds a message to the messages.yml with a comment
|
||||||
|
*
|
||||||
* @param message The key value for the message
|
* @param message The key value for the message
|
||||||
* @param initValue The message itself
|
* @param initValue The message itself
|
||||||
* @param comments The comments to be placed above the message
|
* @param comments The comments to be placed above the message
|
||||||
@ -119,7 +125,7 @@ public abstract class PlexModule
|
|||||||
plex.messages.save();
|
plex.messages.save();
|
||||||
plex.messages.setComments(message, Arrays.asList(comments));
|
plex.messages.setComments(message, Arrays.asList(comments));
|
||||||
plex.messages.save();
|
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