geforkt von Mirrors/FastAsyncWorldEdit
Fixed issue where the use of non-existent subcommands had no response.
Dieser Commit ist enthalten in:
Ursprung
d96d3cf8bc
Commit
5347cd4e34
@ -41,9 +41,9 @@ public class SimpleDispatcherCommand extends SimpleDispatcher implements Command
|
||||
|
||||
@Override
|
||||
public void call(CommandContext context) throws CommandException {
|
||||
if (context.argsLength() >= 1) {
|
||||
super.call(context.getRemainingString(0), context.getLocals());
|
||||
} else {
|
||||
boolean success = context.argsLength() >= 1 && super.call(context.getRemainingString(0), context.getLocals()) != null;
|
||||
|
||||
if (!success) {
|
||||
Set<String> aliases = getPrimaryAliases();
|
||||
|
||||
if (aliases.size() == 0) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren