Add SWCommand.internalHelp
Dieser Commit ist enthalten in:
Ursprung
ffef7f0bcb
Commit
2a9636b995
@ -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);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren