Changed the Runnable to a Command

This commit is contained in:
Nathan Adams
2014-09-24 14:05:12 +02:00
parent 81ed5f0521
commit 8da6087618
11 changed files with 47 additions and 28 deletions
@@ -30,7 +30,7 @@ public class RequiredArgumentBuilder<T> extends ArgumentBuilder<RequiredArgument
}
public ArgumentCommandNode<T> build() {
ArgumentCommandNode<T> result = new ArgumentCommandNode<T>(getName(), getType(), getExecutor());
ArgumentCommandNode<T> result = new ArgumentCommandNode<T>(getName(), getType(), getCommand());
for (ArgumentBuilder argument : getArguments()) {
result.addChild(argument.build());