mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-23 08:01:49 +01:00
#336 Remove new lines before base commands
- GitHub doesn't seem able to add a space before a new base command without adding random new lines in the entire list
This commit is contained in:
parent
0abfd5705c
commit
72365bc6e4
@ -33,7 +33,7 @@ public class CommandPageCreater implements ToolTask {
|
||||
+ "commands/command_entry.tpl.md");
|
||||
|
||||
StringBuilder commandsResult = new StringBuilder();
|
||||
addCommandsInfo(commandsResult, baseCommands, template, true);
|
||||
addCommandsInfo(commandsResult, baseCommands, template);
|
||||
|
||||
FileUtils.generateFileFromTemplate(
|
||||
ToolsConstants.TOOLS_SOURCE_ROOT + "commands/commands.tpl.md",
|
||||
@ -43,7 +43,7 @@ public class CommandPageCreater implements ToolTask {
|
||||
}
|
||||
|
||||
private static void addCommandsInfo(StringBuilder sb, Collection<CommandDescription> commands,
|
||||
final String template, boolean addNewLine) {
|
||||
final String template) {
|
||||
for (CommandDescription command : commands) {
|
||||
Map<String, String> tags = ANewMap
|
||||
.with("command", CommandUtils.constructCommandPath(command))
|
||||
@ -54,10 +54,7 @@ public class CommandPageCreater implements ToolTask {
|
||||
sb.append(TagReplacer.applyReplacements(template, tags));
|
||||
|
||||
if (!command.getChildren().isEmpty()) {
|
||||
addCommandsInfo(sb, command.getChildren(), template, false);
|
||||
}
|
||||
if (addNewLine) {
|
||||
sb.append("\n\n");
|
||||
addCommandsInfo(sb, command.getChildren(), template);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!-- AUTO-GENERATED FILE! Do not edit this directly -->
|
||||
<!-- File auto-generated on Sat Dec 26 13:56:13 CET 2015. See commands/commands.tpl.md -->
|
||||
<!-- File auto-generated on Sat Dec 26 14:05:00 CET 2015. See commands/commands.tpl.md -->
|
||||
|
||||
## AuthMe Commands
|
||||
You can use the following commands to use the features of AuthMe. Mandatory arguments are marked with `< >`
|
||||
@ -44,33 +44,21 @@ brackets; optional arguments are enclosed in square brackets (`[ ]`).
|
||||
- **/authme reload**: Reload the AuthMeReloaded plugin.
|
||||
<br />Requires `authme.admin.reload`
|
||||
- **/authme version**: Show detailed information about the installed AuthMeReloaded version, the developers, contributors, and license.
|
||||
|
||||
|
||||
- **/login** <password>: Command to log in using AuthMeReloaded.
|
||||
<br />Requires `authme.player.login`
|
||||
- **/login help** [query]: View detailed help pages about AuthMeReloaded login commands.
|
||||
|
||||
|
||||
- **/logout**: Command to logout using AuthMeReloaded.
|
||||
<br />Requires `authme.player.logout`
|
||||
- **/logout help** [query]: View detailed help pages about AuthMeReloaded logout commands.
|
||||
|
||||
|
||||
- **/register** <password> [verifyPassword]: Command to register using AuthMeReloaded.
|
||||
<br />Requires `authme.player.register`
|
||||
- **/register help** [query]: View detailed help pages about AuthMeReloaded register commands.
|
||||
|
||||
|
||||
- **/unreg** <password>: Command to unregister using AuthMeReloaded.
|
||||
<br />Requires `authme.player.unregister`
|
||||
- **/unreg help** [query]: View detailed help pages about AuthMeReloaded unregister commands.
|
||||
|
||||
|
||||
- **/changepassword** <oldPassword> <newPassword>: Command to change your password using AuthMeReloaded.
|
||||
<br />Requires `authme.player.changepassword`
|
||||
- **/changepassword help** [query]: View detailed help pages about AuthMeReloaded changepassword commands.
|
||||
|
||||
|
||||
- **/email**: The AuthMeReloaded Email command base.
|
||||
- **/email help** [query]: View detailed help pages about AuthMeReloaded email commands.
|
||||
- **/email add** <email> <verifyEmail>: Add a new email address to your account.
|
||||
@ -79,13 +67,10 @@ brackets; optional arguments are enclosed in square brackets (`[ ]`).
|
||||
<br />Requires `authme.player.email.change`
|
||||
- **/email recover** <email>: Recover your account using an Email address by sending a mail containing a new password.
|
||||
<br />Requires `authme.player.email.recover`
|
||||
|
||||
|
||||
- **/captcha** <captcha>: Captcha command for AuthMeReloaded.
|
||||
<br />Requires `authme.player.captcha`
|
||||
- **/captcha help** [query]: View detailed help pages about AuthMeReloaded captcha commands.
|
||||
|
||||
|
||||
- **/converter** <job>: Converter command for AuthMeReloaded.
|
||||
<br />Requires `authme.admin.converter`
|
||||
- **/converter help** [query]: View detailed help pages about AuthMeReloaded converter commands.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user