#768 Create command for updating messages file

This commit is contained in:
ljacqu
2016-10-10 22:36:14 +02:00
parent 700ab5f3e4
commit 755f3df33e
5 changed files with 189 additions and 4 deletions
@@ -11,6 +11,7 @@ import fr.xephi.authme.command.executable.authme.ForceLoginCommand;
import fr.xephi.authme.command.executable.authme.GetEmailCommand;
import fr.xephi.authme.command.executable.authme.GetIpCommand;
import fr.xephi.authme.command.executable.authme.LastLoginCommand;
import fr.xephi.authme.command.executable.authme.MessagesCommand;
import fr.xephi.authme.command.executable.authme.PurgeBannedPlayersCommand;
import fr.xephi.authme.command.executable.authme.PurgeCommand;
import fr.xephi.authme.command.executable.authme.PurgeLastPositionCommand;
@@ -288,6 +289,15 @@ public class CommandInitializer {
.executableCommand(ConverterCommand.class)
.build();
CommandDescription.builder()
.parent(AUTHME_BASE)
.labels("messages")
.description("Add missing messages")
.detailedDescription("Adds missing messages to the current messages file.")
// TODO #768: add permission for command
.executableCommand(MessagesCommand.class)
.build();
// Register the base login command
final CommandDescription LOGIN_BASE = CommandDescription.builder()
.parent(null)