Merge pull request 'Uppercase first Char in help message' (#206) from cmd_cap_first_letter into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #206 Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
676e247e98
@ -107,7 +107,7 @@ public class SWCommand extends AbstractSWCommand<CommandSender> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
message.sendPrefixless("COMMAND_HELP_HEAD", p, command.getName());
|
message.sendPrefixless("COMMAND_HELP_HEAD", p, command.getName().substring(0, 1).toUpperCase() + command.getName().substring(1));
|
||||||
defaultHelpMessages.forEach(s -> message.sendPrefixless(s, p));
|
defaultHelpMessages.forEach(s -> message.sendPrefixless(s, p));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Bukkit.getLogger().log(Level.WARNING, "Failed to send help message", e);
|
Bukkit.getLogger().log(Level.WARNING, "Failed to send help message", e);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren