Fix HelpCommand not working without static CommandsExecutor
This commit is contained in:
@@ -6,5 +6,9 @@ import server.shop.ShopFactory;
|
||||
/**
|
||||
* @author Ponk
|
||||
*/
|
||||
public record CommandContext(DropProvider dropProvider, ShopFactory shopFactory) {
|
||||
public record CommandContext(CommandsExecutor commandsExecutor, DropProvider dropProvider, ShopFactory shopFactory) {
|
||||
|
||||
public CommandContext with(CommandsExecutor ce) {
|
||||
return new CommandContext(ce, this.dropProvider, this.shopFactory);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user