Files
sweetgum-server/src/main/java/client/command/CommandContext.java
2023-08-04 15:01:49 +02:00

17 lines
486 B
Java

package client.command;
import database.drop.DropProvider;
import server.shop.ShopFactory;
import service.ChannelService;
/**
* @author Ponk
*/
public record CommandContext(CommandsExecutor commandsExecutor, DropProvider dropProvider, ShopFactory shopFactory,
ChannelService channelService) {
public CommandContext with(CommandsExecutor ce) {
return new CommandContext(ce, this.dropProvider, this.shopFactory, this.channelService);
}
}