Symmetrize method name for givingErrorOnTooManyArgs
This commit is contained in:
parent
4291dc35ba
commit
a7ba558899
@ -25,7 +25,7 @@ public class DeprecatedCommand extends MassiveCommand
|
||||
this.setAliases(aliases);
|
||||
|
||||
// Args
|
||||
this.setErrorOnTooManyArgs(false);
|
||||
this.setGivingErrorOnTooManyArgs(false);
|
||||
|
||||
// Visibility
|
||||
this.setVisibilityMode(VisibilityMode.INVISIBLE);
|
||||
|
@ -300,11 +300,11 @@ public class MassiveCommand
|
||||
|
||||
// FIELD: errorOnToManyArgs
|
||||
// Should an error be thrown if "too many" args are sent.
|
||||
protected boolean errorOnToManyArgs;
|
||||
public boolean isGivingErrorOnTooManyArgs() { return this.errorOnToManyArgs; }
|
||||
public void setErrorOnTooManyArgs(boolean val) { this.errorOnToManyArgs = val; }
|
||||
protected boolean givingErrorOnTooManyArgs;
|
||||
public boolean isGivingErrorOnTooManyArgs() { return this.givingErrorOnTooManyArgs; }
|
||||
public void setGivingErrorOnTooManyArgs(boolean val) { this.givingErrorOnTooManyArgs = val; }
|
||||
@Deprecated public boolean getErrorOnToManyArgs() { return this.isGivingErrorOnTooManyArgs(); }
|
||||
@Deprecated public void setErrorOnToManyArgs(boolean val) { this.setErrorOnTooManyArgs(val); }
|
||||
@Deprecated public void setErrorOnToManyArgs(boolean val) { this.setGivingErrorOnTooManyArgs(val); }
|
||||
|
||||
// FIELD concatFrom
|
||||
// From which arg should the be concatenated.
|
||||
@ -478,7 +478,7 @@ public class MassiveCommand
|
||||
|
||||
this.requirements = new ArrayList<Req>();
|
||||
|
||||
this.errorOnToManyArgs = true;
|
||||
this.givingErrorOnTooManyArgs = true;
|
||||
this.usingConcatFrom = false;
|
||||
|
||||
this.usingTokenizer = true;
|
||||
|
Loading…
Reference in New Issue
Block a user