Java Code Examples for com.velocitypowered.api.event.PostOrder#LATE
The following examples show how to use
com.velocitypowered.api.event.PostOrder#LATE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VelocityBootstrap.java From AntiVPN with MIT License | 5 votes |
@Subscribe(order = PostOrder.LATE) public void onDisable(ProxyShutdownEvent event) { try { concreteClass.getMethod("onDisable").invoke(concrete); } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) { logger.error(ex.getMessage(), ex); throw new RuntimeException("Could not invoke onDisable."); } }
Example 2
Source File: VelocityPlugin.java From ViaRewind with MIT License | 5 votes |
@Subscribe(order = PostOrder.LATE) public void onProxyStart(ProxyInitializeEvent e) { // Setup Logger this.logger = new LoggerWrapper(loggerSlf4j); // Init! ViaRewindConfigImpl conf = new ViaRewindConfigImpl(configDir.resolve("config.yml").toFile()); conf.reloadConfig(); this.init(conf); }
Example 3
Source File: VelocityServerHandler.java From ViaVersion with MIT License | 5 votes |
@Subscribe(order = PostOrder.LATE) public void connectedEvent(ServerConnectedEvent e) { UserConnection user = Via.getManager().getConnection(e.getPlayer().getUniqueId()); CompletableFuture.runAsync(() -> { try { checkServerChange(e, Via.getManager().getConnection(e.getPlayer().getUniqueId())); } catch (Exception e1) { e1.printStackTrace(); } }, user.getChannel().eventLoop()).join(); }
Example 4
Source File: VelocityPlugin.java From ViaBackwards with MIT License | 4 votes |
@Subscribe(order = PostOrder.LATE) public void onProxyStart(ProxyInitializeEvent e) { // Setup Logger this.logger = new LoggerWrapper(loggerSlf4j); Via.getManager().addEnableListener(() -> this.init(configPath.resolve("config.yml").toFile())); }