Fix bug in useageTemplate and a bug with required args from console.
This commit is contained in:
parent
6f8da0a9f8
commit
d7fcef6c3d
@ -30,7 +30,7 @@ public class ArgSetting
|
|||||||
// Is this arg ALWAYS required from the console?
|
// Is this arg ALWAYS required from the console?
|
||||||
// That might the case if the arg is a player. and default is oneself.
|
// That might the case if the arg is a player. and default is oneself.
|
||||||
protected boolean requiredFromConsole = false;
|
protected boolean requiredFromConsole = false;
|
||||||
public boolean isRequiredFromConsole() { return requiredFromConsole && this.isRequired(); }
|
public boolean isRequiredFromConsole() { return requiredFromConsole; }
|
||||||
public ArgSetting setRequiredFromConsole(boolean requiredFromConsole) { this.requiredFromConsole = requiredFromConsole; return this; }
|
public ArgSetting setRequiredFromConsole(boolean requiredFromConsole) { this.requiredFromConsole = requiredFromConsole; return this; }
|
||||||
|
|
||||||
// An optional description of this argument.
|
// An optional description of this argument.
|
||||||
|
@ -892,7 +892,7 @@ public class MassiveCommand
|
|||||||
|
|
||||||
public String getUseageTemplate(List<MassiveCommand> commandChain, boolean addDesc, boolean onlyFirstAlias)
|
public String getUseageTemplate(List<MassiveCommand> commandChain, boolean addDesc, boolean onlyFirstAlias)
|
||||||
{
|
{
|
||||||
return getUseageTemplate(commandChain, addDesc, onlyFirstAlias, null);
|
return getUseageTemplate(commandChain, addDesc, onlyFirstAlias, sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUseageTemplate(List<MassiveCommand> commandChain, boolean addDesc)
|
public String getUseageTemplate(List<MassiveCommand> commandChain, boolean addDesc)
|
||||||
|
Loading…
Reference in New Issue
Block a user