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