use of com.ubivashka.lamp.commands.vk.core.BaseVkActor in project MC-Auth-with-VK by U61vashka.
the class MessageListener method onMessage.
@EventHandler
public void onMessage(VKMessageEvent event) {
VkHandler.getInstances().forEach((commandHandler) -> {
CommandActor commandActor = new VKCommandActorWrapper(new BaseVkActor(event.getMessage(), commandHandler));
ArgumentStack argumentStack = ArgumentStack.fromString(event.getMessage().getText());
commandHandler.dispatch(commandActor, argumentStack);
});
}
Aggregations