Added uppercase first letter on the help menu

This commit is contained in:
sekwah 2018-01-22 22:12:53 +00:00
parent d7b1818b12
commit cefae0db89

View File

@ -57,6 +57,7 @@ public class CommandWithSubCommands implements CommandTemplate {
return;
}
}
commandExecuted = commandExecuted.substring(0,1).toUpperCase() + commandExecuted.substring(1).toLowerCase();
sender.sendMessage(Lang.translateInsertVariablesColor("command.help.header", commandExecuted, helpPage, pages));
int subCommandOffset = (helpPage - 1) * this.subCommandsPerPage;
int displayEnd = subCommandOffset + this.subCommandsPerPage;