Skip to content
Permalink
Browse files

Adjust default parameter help output

  • Loading branch information...
aikar committed Mar 15, 2019
1 parent 655ab0b commit e9857cb8b3dc3b7c02bd9a115c5f25220412ff07
@@ -47,7 +47,9 @@

public CommandCompletions(CommandManager manager) {
this.manager = manager;
registerAsyncCompletion("nothing", c -> Collections.emptyList());
registerStaticCompletion("empty", Collections.emptyList());
registerStaticCompletion("nothing", Collections.emptyList());
registerStaticCompletion("timeunits", Arrays.asList("minutes", "hours", "days", "weeks", "months", "years"));
registerAsyncCompletion("range", (c) -> {
String config = c.getConfig();
if (config == null) {
@@ -65,8 +67,6 @@ public CommandCompletions(CommandManager manager) {
}
return IntStream.rangeClosed(start, end).mapToObj(Integer::toString).collect(Collectors.toList());
});
List<String> timeunits = Arrays.asList("minutes", "hours", "days", "weeks", "months", "years");
registerAsyncCompletion("timeunits", (c) -> timeunits);
}

/**
@@ -193,6 +193,7 @@ public void printDetailedHelpFooter(CommandHelp help, CommandIssuer issuer, Help
//{name} {description}
return new String[]{
"{name}", param.getName(),
"{syntaxorname}", ACFUtil.nullDefault(param.getSyntax(), param.getName()),
"{syntax}", ACFUtil.nullDefault(param.getSyntax(), ""),
"{description}", ACFUtil.nullDefault(param.getDescription(), ""),
"{command}", help.getCommandName(),
@@ -19,28 +19,27 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

acf-core.permission_denied = Du hast nicht die benötigte Berechtigung um diesen Befehl auszuführen.
acf-core.error_generic_logged = Ein Fehler ist aufgetreten. Dieses Problem wurde protokolliert. Entschuldigung für die Unannehmlichkeiten.
acf-core.unknown_command = Unbekannter Befehl, gib <c2>/help</c2> ein, um Hilfe zu bekommen.
acf-core.invalid_syntax = Verwendung: <c2>{command}</c2> <c3>{syntax}</c3>
acf-core.error_prefix = Fehler: {message}
acf-core.error_performing_command = Beim Ausführen des Befehls ist ein Fehler aufgetreten.
acf-core.info_message = {message}
acf-core.please_specify_one_of = Fehler: Du must aus diesen Optionen wählen (<c2>{valid}</c2>).
acf-core.must_be_a_number = Fehler: Du musst eine Zahl eingeben.
acf-core.must_be_min_length = Fehler: Du musst mindestens {min} Buchstaben eingeben.
acf-core.must_be_max_length = Fehler: Du kannst maximal {max} Buchstaben eingeben.
acf-core.please_specify_at_most = Fehler: Bitte gib eine Zahl kleiner oder gleich {max} ein.
acf-core.please_specify_at_least = Error: Bitte gib eine Zahl größer oder gleich {min} ein.
acf-core.not_allowed_on_console = Fehler: Die Konsole darf diesen Befehl nicht ausführen.
acf-core.could_not_find_player = Fehler: Es konnte kein Spieler mit dem Namen <c2>{search}</c2> gefunden werden.
acf-core.help_format = <c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.no_command_matched_search = Es wurde kein mit <c2>{search}</c2> übereinstimmender Befehl gefunden.
acf-core.help_page_information = - Seite <c2>{page}</c2> von <c2>{totalpages}</c2> (<c3>{results}</c3> Ergebnisse).
acf-core.help_no_results = Fehler: Keine weiteren Ergebnisse.
acf-core.help_header = <c3>=== </c3><c1>Hilfe für </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_header = <c3>=== </c3><c1>Detaillierte Hilfe für </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_command_format = <c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_parameter_format = <c2>{name}</c2>: <c3>{description}</c3>
acf-core.help_search_header = <c3>=== </c3><c1>Suchergebnisse für </c1><c2>{commandprefix}{command} {search}</c2><c3> ===</c3>
acf-core.permission_denied=Du hast nicht die benötigte Berechtigung um diesen Befehl auszuführen.
acf-core.error_generic_logged=Ein Fehler ist aufgetreten. Dieses Problem wurde protokolliert. Entschuldigung für die Unannehmlichkeiten.
acf-core.unknown_command=Unbekannter Befehl, gib <c2>/help</c2> ein, um Hilfe zu bekommen.
acf-core.invalid_syntax=Verwendung: <c2>{command}</c2> <c3>{syntax}</c3>
acf-core.error_prefix=Fehler: {message}
acf-core.error_performing_command=Beim Ausführen des Befehls ist ein Fehler aufgetreten.
acf-core.info_message={message}
acf-core.please_specify_one_of=Fehler: Du must aus diesen Optionen wählen (<c2>{valid}</c2>).
acf-core.must_be_a_number=Fehler: Du musst eine Zahl eingeben.
acf-core.must_be_min_length=Fehler: Du musst mindestens {min} Buchstaben eingeben.
acf-core.must_be_max_length=Fehler: Du kannst maximal {max} Buchstaben eingeben.
acf-core.please_specify_at_most=Fehler: Bitte gib eine Zahl kleiner oder gleich {max} ein.
acf-core.please_specify_at_least=Error: Bitte gib eine Zahl größer oder gleich {min} ein.
acf-core.not_allowed_on_console=Fehler: Die Konsole darf diesen Befehl nicht ausführen.
acf-core.could_not_find_player=Fehler: Es konnte kein Spieler mit dem Namen <c2>{search}</c2> gefunden werden.
acf-core.help_format=<c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.no_command_matched_search=Es wurde kein mit <c2>{search}</c2> übereinstimmender Befehl gefunden.
acf-core.help_page_information=- Seite <c2>{page}</c2> von <c2>{totalpages}</c2> (<c3>{results}</c3> Ergebnisse).
acf-core.help_no_results=Fehler: Keine weiteren Ergebnisse.
acf-core.help_header=<c3>=== </c3><c1>Hilfe für </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_header=<c3>=== </c3><c1>Detaillierte Hilfe für </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_command_format=<c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_parameter_format=<c2>{syntaxorname}</c2>: <c3>{description}</c3>
acf-core.help_search_header=<c3>=== </c3><c1>Suchergebnisse für </c1><c2>{commandprefix}{command} {search}</c2><c3> ===</c3>
@@ -42,5 +42,5 @@ acf-core.help_header=<c3>=== </c3><c1>Showing help for </c1><c2>{commandprefix}{
acf-core.help_format=<c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_header=<c3>=== </c3><c1>Showing detailed help for </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_command_format=<c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_parameter_format=<c2>{name}</c2>: <c3>{description}</c3>
acf-core.help_detailed_parameter_format=<c2>{syntaxorname}</c2>: <c3>{description}</c3>
acf-core.help_search_header=<c3>=== </c3><c1>Search results for </c1><c2>{commandprefix}{command} {search}</c2><c3> ===</c3>
@@ -19,25 +19,24 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

acf-core.error_generic_logged = Se ha producido un error. El problema ha sido registrado. Disculpe las inconveniencias.
acf-core.unknown_command = Comando desconocido, por favor use <c2>/help</c2>
acf-core.invalid_syntax = Uso: <c2>{command}</c2> <c3>{syntax}</c3>
acf-core.error_prefix = Error: {message}
acf-core.error_performing_command = Lo siento, pero hubo un error ejecutando este comando.
acf-core.info_message = {message}
acf-core.please_specify_one_of = Error: Por favor especifique uno de los (<c2>{valid}</c2>).
acf-core.must_be_a_number = Error: Tiene que ser un número.
acf-core.must_be_min_length = Error: Debería tener al menos {min} caracteres de largo.
acf-core.must_be_max_length = Error: Debería tener como máximo {max} caracteres de largo.
acf-core.please_specify_at_most = Error: Por favor especifique un valor con un máximo de {max}.
acf-core.please_specify_at_least = Error: Por favor especifique {min}.
acf-core.not_allowed_on_console = Error: La consola no puede ejecutar este comando.
acf-core.could_not_find_player = Error: No se pudo encontrar un jugador con el nombre: <c2>{search}</c2>
acf-core.no_command_matched_search = No se ha encontrado un comando que coincida con <c2>{search}</c2>.
acf-core.help_page_information = - Mostrando página <c2>{page}</c2> de <c2>{totalpages}</c2> (<c3>{results}</c3> resultados).
acf-core.error_generic_logged=Se ha producido un error. El problema ha sido registrado. Disculpe las inconveniencias.
acf-core.unknown_command=Comando desconocido, por favor use <c2>/help</c2>
acf-core.invalid_syntax=Uso: <c2>{command}</c2> <c3>{syntax}</c3>
acf-core.error_prefix=Error: {message}
acf-core.error_performing_command=Lo siento, pero hubo un error ejecutando este comando.
acf-core.info_message={message}
acf-core.please_specify_one_of=Error: Por favor especifique uno de los (<c2>{valid}</c2>).
acf-core.must_be_a_number=Error: Tiene que ser un número.
acf-core.must_be_min_length=Error: Debería tener al menos {min} caracteres de largo.
acf-core.must_be_max_length=Error: Debería tener como máximo {max} caracteres de largo.
acf-core.please_specify_at_most=Error: Por favor especifique un valor con un máximo de {max}.
acf-core.please_specify_at_least=Error: Por favor especifique {min}.
acf-core.not_allowed_on_console=Error: La consola no puede ejecutar este comando.
acf-core.could_not_find_player=Error: No se pudo encontrar un jugador con el nombre: <c2>{search}</c2>
acf-core.no_command_matched_search=No se ha encontrado un comando que coincida con <c2>{search}</c2>.
acf-core.help_page_information=- Mostrando página <c2>{page}</c2> de <c2>{totalpages}</c2> (<c3>{results}</c3> resultados).
acf-core.help_format=<c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_header = <c3>=== </c3><c1>Mostrando ayuda detallada para </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_command_format = <c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_parameter_format = <c2>{name}</c2>: <c3>{description}</c3>
acf-core.help_search_header = <c3>=== </c3><c1>Resultados de la busqueda para </c1><c2>{commandprefix}{command} {search}</c2><c3> ===</c3>
acf-core.help_detailed_header=<c3>=== </c3><c1>Mostrando ayuda detallada para </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_command_format=<c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_parameter_format=<c2>{syntaxorname}</c2>: <c3>{description}</c3>
acf-core.help_search_header=<c3>=== </c3><c1>Resultados de la busqueda para </c1><c2>{commandprefix}{command} {search}</c2><c3> ===</c3>
@@ -20,28 +20,27 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

acf-core.permission_denied = Vous n'avez pas la permission d'exécuter cette commande.
acf-core.error_generic_logged = Une erreur est survenue. Ce problème a été enregistré. Désolé pour le dérangement.
acf-core.unknown_command = Commande inconnue, merci de faire <c2>/help</c2>
acf-core.invalid_syntax = Usage: <c2>{command}</c2> <c3>{syntax}</c3>
acf-core.error_prefix = Erreur: {message}
acf-core.error_performing_command = Une erreur est survenue lors de l'exécution de cette commande.
acf-core.info_message = {message}
acf-core.please_specify_one_of = Erreur: Veuillez choisir parmi (<c2>{valid}</c2>).
acf-core.must_be_a_number = Erreur: {num} doit être un nombre.
acf-core.must_be_min_length = Erreur: Doit faire au moins {min} caractères.
acf-core.must_be_max_length = Erreur: Doit faire moins de {max} caractères.
acf-core.please_specify_at_most = Erreur: Veuillez spécifier une valeur inférieure à {max}
acf-core.please_specify_at_least = Erreur: Veuillez spécifier une valeur supérieure à {min}
acf-core.not_allowed_on_console = Erreur: La console ne peut pas exécuter cette commande.
acf-core.could_not_find_player = Erreur: Impossible de trouver un joueur avec le nom: <c2>{search}</c2>
acf-core.no_command_matched_search = Aucune commande correspondant à <c2>{search}</c2>.
acf-core.help_page_information = - Page <c2>{page}</c2> de <c2>{totalpages}</c2> (<c3>{results}</c3> résultats).
acf-core.help_no_results = Erreur: Plus aucun résultats.
acf-core.help_header = <c3>=== </c3><c1>Affichage de l'aide pour </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_format = <c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_header = <c3>=== </c3><c1>Affichage de l'aide détaillée pour </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_command_format = <c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_parameter_format = <c2>{name}</c2>: <c3>{description}</c3>
acf-core.help_search_header = <c3>=== </c3><c1>Résultats de la recherche pour </c1><c2>{commandprefix}{command} {search}</c2><c3> ===</c3>
acf-core.permission_denied=Vous n'avez pas la permission d'ex�cuter cette commande.
acf-core.error_generic_logged=Une erreur est survenue. Ce probl�me a �t� enregistr�. D�sol� pour le d�rangement.
acf-core.unknown_command=Commande inconnue, merci de faire <c2>/help</c2>
acf-core.invalid_syntax=Usage: <c2>{command}</c2> <c3>{syntax}</c3>
acf-core.error_prefix=Erreur: {message}
acf-core.error_performing_command=Une erreur est survenue lors de l'ex�cution de cette commande.
acf-core.info_message={message}
acf-core.please_specify_one_of=Erreur: Veuillez choisir parmi (<c2>{valid}</c2>).
acf-core.must_be_a_number=Erreur: {num} doit �tre un nombre.
acf-core.must_be_min_length=Erreur: Doit faire au moins {min} caract�res.
acf-core.must_be_max_length=Erreur: Doit faire moins de {max} caract�res.
acf-core.please_specify_at_most=Erreur: Veuillez sp�cifier une valeur inf�rieure � {max}
acf-core.please_specify_at_least=Erreur: Veuillez sp�cifier une valeur sup�rieure � {min}
acf-core.not_allowed_on_console=Erreur: La console ne peut pas ex�cuter cette commande.
acf-core.could_not_find_player=Erreur: Impossible de trouver un joueur avec le nom: <c2>{search}</c2>
acf-core.no_command_matched_search=Aucune commande correspondant � <c2>{search}</c2>.
acf-core.help_page_information=- Page <c2>{page}</c2> de <c2>{totalpages}</c2> (<c3>{results}</c3> r�sultats).
acf-core.help_no_results=Erreur: Plus aucun r�sultats.
acf-core.help_header=<c3>=== </c3><c1>Affichage de l'aide pour </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_format=<c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_header=<c3>=== </c3><c1>Affichage de l'aide d�taill�e pour </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_command_format=<c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_parameter_format=<c2>{syntaxorname}</c2>: <c3>{description}</c3>
acf-core.help_search_header=<c3>=== </c3><c1>R�sultats de la recherche pour </c1><c2>{commandprefix}{command} {search}</c2><c3> ===</c3>
@@ -19,28 +19,27 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

acf-core.permission_denied = Beklager, du har ikke tilgang til denne kommandoen.
acf-core.error_generic_logged = En feil har oppstått. Problemet har blitt logget. Beklager for all besvær dette har skapt.
acf-core.unknown_command = Ukjent kommando, vennligst skriv <c2>/help</c2>.
acf-core.invalid_syntax = Syntaks: <c2>{command}</c2> <c3>{syntax}</c3>
acf-core.error_prefix = Feil: {message}
acf-core.error_performing_command = Beklager, det oppsto en feil under kommandoen.
acf-core.info_message = {message}
acf-core.please_specify_one_of = Feil: Vennligst oppgi en av (<c2>{valid}</c2>).
acf-core.must_be_a_number = Feil: {num} må være et tall.
acf-core.must_be_min_length = Feil: Må være minst {min} tegn langt.
acf-core.must_be_max_length = Feil: Må være maksimum {max} tegn langt.
acf-core.please_specify_at_most = Feil: Vennligst oppgi en verdi på maksimum {max}.
acf-core.please_specify_at_least = Feil: Vennligst oppgi en verdi på minst {min}.
acf-core.not_allowed_on_console = Feil: Konsollen kan ikke utføre denne kommandoen.
acf-core.could_not_find_player = Feil: Kunne ikke finne en spiller med navnet: <c2>{search}</c2>
acf-core.no_command_matched_search = Ingen kommando matchet <c2>{search}</c2>.
acf-core.help_page_information = - Viser side <c2>{page}</c2> av <c2>{totalpages}</c2> (<c3>{results}</c3> resultater).
acf-core.help_no_results = Feil: Ingen flere resultater.
acf-core.help_header = <c3>=== </c3><c1>Viser hjelp for </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_format = <c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_header = <c3>=== </c3><c1>Viser detaljert hjelp for </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_command_format = <c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_parameter_format = <c2>{name}</c2>: <c3>{description}</c3>
acf-core.help_search_header = <c3>=== </c3><c1>Søkeresultater for </c1><c2>{commandprefix}{command} {search}</c2><c3> ===</c3>
acf-core.permission_denied=Beklager, du har ikke tilgang til denne kommandoen.
acf-core.error_generic_logged=En feil har oppstått. Problemet har blitt logget. Beklager for all besvær dette har skapt.
acf-core.unknown_command=Ukjent kommando, vennligst skriv <c2>/help</c2>.
acf-core.invalid_syntax=Syntaks: <c2>{command}</c2> <c3>{syntax}</c3>
acf-core.error_prefix=Feil: {message}
acf-core.error_performing_command=Beklager, det oppsto en feil under kommandoen.
acf-core.info_message={message}
acf-core.please_specify_one_of=Feil: Vennligst oppgi en av (<c2>{valid}</c2>).
acf-core.must_be_a_number=Feil: {num} må være et tall.
acf-core.must_be_min_length=Feil: Må være minst {min} tegn langt.
acf-core.must_be_max_length=Feil: Må være maksimum {max} tegn langt.
acf-core.please_specify_at_most=Feil: Vennligst oppgi en verdi på maksimum {max}.
acf-core.please_specify_at_least=Feil: Vennligst oppgi en verdi på minst {min}.
acf-core.not_allowed_on_console=Feil: Konsollen kan ikke utføre denne kommandoen.
acf-core.could_not_find_player=Feil: Kunne ikke finne en spiller med navnet: <c2>{search}</c2>
acf-core.no_command_matched_search=Ingen kommando matchet <c2>{search}</c2>.
acf-core.help_page_information=- Viser side <c2>{page}</c2> av <c2>{totalpages}</c2> (<c3>{results}</c3> resultater).
acf-core.help_no_results=Feil: Ingen flere resultater.
acf-core.help_header=<c3>=== </c3><c1>Viser hjelp for </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_format=<c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_header=<c3>=== </c3><c1>Viser detaljert hjelp for </c1><c2>{commandprefix}{command}</c2><c3> ===</c3>
acf-core.help_detailed_command_format=<c1>{command}</c1> <c2>{parameters}</c2> <c3>{separator} {description}</c3>
acf-core.help_detailed_parameter_format=<c2>{syntaxorname}</c2>: <c3>{description}</c3>
acf-core.help_search_header=<c3>=== </c3><c1>Søkeresultater for </c1><c2>{commandprefix}{command} {search}</c2><c3> ===</c3>
Oops, something went wrong.

0 comments on commit e9857cb

Please sign in to comment.
You can’t perform that action at this time.