SteamWar/SpigotCore
Archiviert
13
0

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

Reviewed-on: #206
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Lixfel 2022-08-21 18:28:16 +02:00
Commit 676e247e98

Datei anzeigen

@ -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);