diff options
author | Dico Karssiens <dico.karssiens@gmail.com> | 2018-07-29 01:03:31 +0100 |
---|---|---|
committer | Dico Karssiens <dico.karssiens@gmail.com> | 2018-07-29 01:03:31 +0100 |
commit | d425a1e977cb03a7b9162e3dcb775cabeff52814 (patch) | |
tree | f0bcc94a0912c8a79fbcb7c30c389542402311b6 /dicore3/command/src/main/java/io/dico/dicore/command/Command.java | |
parent | 547ffcb0ba8407838e0ec9241406206b38885ad2 (diff) |
Tweaks and fixes
Diffstat (limited to 'dicore3/command/src/main/java/io/dico/dicore/command/Command.java')
-rw-r--r-- | dicore3/command/src/main/java/io/dico/dicore/command/Command.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dicore3/command/src/main/java/io/dico/dicore/command/Command.java b/dicore3/command/src/main/java/io/dico/dicore/command/Command.java index 0ba04b1..b66b5f5 100644 --- a/dicore3/command/src/main/java/io/dico/dicore/command/Command.java +++ b/dicore3/command/src/main/java/io/dico/dicore/command/Command.java @@ -27,27 +27,27 @@ public abstract class Command { } public <TType> Command addParameter(String name, String description, ParameterType<TType, Void> type) { - return addParameter(Parameter.newParameter(name, description, type, null, false, null)); + return addParameter(new Parameter<>(name, description, type, null, false, null)); } public <TType, TParamInfo> Command addParameter(String name, String description, ParameterType<TType, TParamInfo> type, TParamInfo paramInfo) { - return addParameter(Parameter.newParameter(name, description, type, paramInfo, false, null)); + return addParameter(new Parameter<>(name, description, type, paramInfo, false, null)); } public <TType> Command addFlag(String name, String description, ParameterType<TType, Void> type) { - return addParameter(Parameter.newParameter('-' + name, description, type, null, true, null)); + return addParameter(new Parameter<>('-' + name, description, type, null, true, null)); } public <TType, TParamInfo> Command addFlag(String name, String description, ParameterType<TType, TParamInfo> type, TParamInfo paramInfo) { - return addParameter(Parameter.newParameter('-' + name, description, type, paramInfo, true, null)); + return addParameter(new Parameter<>('-' + name, description, type, paramInfo, true, null)); } public <TType> Command addAuthorizedFlag(String name, String description, ParameterType<TType, Void> type, String permission) { - return addParameter(Parameter.newParameter('-' + name, description, type, null, true, permission)); + return addParameter(new Parameter<>('-' + name, description, type, null, true, permission)); } public <TType, TParamInfo> Command addAuthorizedFlag(String name, String description, ParameterType<TType, TParamInfo> type, TParamInfo paramInfo, String permission) { - return addParameter(Parameter.newParameter('-' + name, description, type, paramInfo, true, permission)); + return addParameter(new Parameter<>('-' + name, description, type, paramInfo, true, permission)); } public Command requiredParameters(int requiredParameters) { |