Added uppercase first letter on the help menu

This commit is contained in:
sekwah 2018-01-22 22:12:53 +00:00 committed by Sekwah
parent dd5e1edfad
commit 85525709c4

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;