use of de.polocloud.plugin.bootstrap.velocity.listener.VelocityListener in project PoloCloud by PoloServices.
the class VelocityBootstrap method handle.
@Subscribe
public void handle(final ProxyInitializeEvent event) {
new VelocityCloudListener(this.proxyServer);
this.proxyServer.getEventManager().register(this, new VelocityListener(this, this.proxyServer));
CommandMeta meta = this.proxyServer.getCommandManager().metaBuilder("cloud").build();
this.proxyServer.getCommandManager().register(meta, new VelocityCloudCommand());
// update that the service is ready to use
final var service = Wrapper.getInstance().thisService();
if (service.getGroup().isAutoUpdating()) {
service.edit(cloudService -> cloudService.setState(ServiceState.ONLINE));
}
}
Aggregations