mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Fixed issue where the use of non-existent subcommands had no response.
This commit is contained in:
parent
d96d3cf8bc
commit
5347cd4e34
@ -41,9 +41,9 @@ public Set<Character> getValueFlags() {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void call(CommandContext context) throws CommandException {
|
public void call(CommandContext context) throws CommandException {
|
||||||
if (context.argsLength() >= 1) {
|
boolean success = context.argsLength() >= 1 && super.call(context.getRemainingString(0), context.getLocals()) != null;
|
||||||
super.call(context.getRemainingString(0), context.getLocals());
|
|
||||||
} else {
|
if (!success) {
|
||||||
Set<String> aliases = getPrimaryAliases();
|
Set<String> aliases = getPrimaryAliases();
|
||||||
|
|
||||||
if (aliases.size() == 0) {
|
if (aliases.size() == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user