Refine JavaDoc and move Log filters to 'output'

This commit is contained in:
ljacqu
2015-12-01 21:53:18 +01:00
parent 690a8d67a3
commit b0e619d412
7 changed files with 21 additions and 19 deletions
@@ -6,6 +6,8 @@ import org.bukkit.command.CommandSender;
/**
* Class for retrieving and sending translatable messages to players.
* This class detects when the language settings have changed and will
* automatically update to use a new language file.
*/
public class Messages {
@@ -19,6 +21,11 @@ public class Messages {
this.manager = manager;
}
/**
* Get the instance of Messages.
*
* @return The Messages instance
*/
public static Messages getInstance() {
if (singleton == null) {
MessagesManager manager = new MessagesManager(Settings.messageFile);
@@ -65,6 +72,9 @@ public class Messages {
return StringUtils.join("\n", retrieve(key));
}
/**
* Reload the messages manager.
*/
public void reloadManager() {
manager = new MessagesManager(Settings.messageFile);
}