Symmetrize method name for givingErrorOnTooManyArgs

This commit is contained in:
Olof Larsson 2015-05-06 12:06:54 +02:00
parent 4291dc35ba
commit a7ba558899
2 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ public class DeprecatedCommand extends MassiveCommand
this.setAliases(aliases);
// Args
this.setErrorOnTooManyArgs(false);
this.setGivingErrorOnTooManyArgs(false);
// Visibility
this.setVisibilityMode(VisibilityMode.INVISIBLE);

View File

@ -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;