get rid of command handler parameter
This commit is contained in:
parent
613ea016f1
commit
aa0f9216e8
2 changed files with 3 additions and 3 deletions
|
|
@ -11,10 +11,10 @@ public class ScrowCommands<C extends VelocityCommandContext<C>> implements IScro
|
|||
private final CommandContextFactory<C> commandContextFactory;
|
||||
private final CommandHandler<C> commandHandler;
|
||||
|
||||
public ScrowCommands(ProxyServer server, CommandContextFactory<C> commandContextFactory, CommandHandler<C> commandHandler) {
|
||||
public ScrowCommands(ProxyServer server, CommandContextFactory<C> commandContextFactory) {
|
||||
this.server = server;
|
||||
this.commandContextFactory = commandContextFactory;
|
||||
this.commandHandler = commandHandler;
|
||||
this.commandHandler = new CommandHandler<>(new VelocityPlatform<>());
|
||||
}
|
||||
|
||||
public void register(RootLiteral<C> rootNode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue