SteamWar/SpigotCore
Archiviert
13
0

CommandFramework #107

Geschlossen
YoyoNow möchte 27 Commits von CommandFramework nach master mergen
Nur Änderungen aus Commit 2a9636b995 werden angezeigt - Alle Commits anzeigen

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