Made every CommandNode support an executor

This commit is contained in:
Nathan Adams
2014-09-24 12:04:33 +02:00
parent 3ef22ef317
commit d13587a4df
6 changed files with 34 additions and 8 deletions
@@ -8,7 +8,8 @@ public class ArgumentCommandNode<T> extends CommandNode {
private final String name;
private final CommandArgumentType<T> type;
public ArgumentCommandNode(String name, CommandArgumentType<T> type) {
public ArgumentCommandNode(String name, CommandArgumentType<T> type, Runnable executor) {
super(executor);
this.name = name;
this.type = type;
}