SteamWar/SpigotCore
Archiviert
13
0

Add SWCommand.internalHelp

Dieser Commit ist enthalten in:
yoyosource 2021-05-14 14:38:39 +02:00
Ursprung ffef7f0bcb
Commit 2a9636b995

Datei anzeigen

@ -178,7 +178,7 @@ public abstract class SWCommand {
}
@Register
private void internalHelp(CommandSender sender, String... args){
private void internalHelp(CommandSender sender, String... args) {
if (help.isEmpty()) {
commandList.forEach(subCommand -> {
StringBuilder st = new StringBuilder();
@ -200,10 +200,11 @@ public abstract class SWCommand {
if (subCommand.varArgType != null) {
st.append("§7...");
}
st.append("§8 - §7Description Here");
help.add(st.toString());
});
}
sender.sendMessage("§7Help§8: §e" + command.getName());
sender.sendMessage("§7----==== §e" + command.getName() + "§7====----");
help.forEach(sender::sendMessage);
}