us.myles.ViaVersion.sponge.util.LoggerWrapper Java Examples
The following examples show how to use
us.myles.ViaVersion.sponge.util.LoggerWrapper.
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: SpongePlugin.java From ViaVersion with MIT License | 6 votes |
@Listener public void onGameStart(GameInitializationEvent event) { // Setup Logger logger = new LoggerWrapper(container.getLogger()); // Setup Plugin conf = new SpongeViaConfig(container, spongeConfig.getParentFile()); SpongeCommandHandler commandHandler = new SpongeCommandHandler(); game.getCommandManager().register(this, commandHandler, "viaversion", "viaver", "vvsponge"); logger.info("ViaVersion " + getPluginVersion() + " is now loaded!"); // Init platform Via.init(ViaManager.builder() .platform(this) .commandHandler(commandHandler) .injector(new SpongeViaInjector()) .loader(new SpongeViaLoader(this)) .build()); }
Example #2
Source File: SpongePlugin.java From ViaRewind with MIT License | 5 votes |
@Listener(order = Order.LATE) public void onGameStart(GameInitializationEvent 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: 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 #4
Source File: SpongePlugin.java From ViaBackwards with MIT License | 5 votes |
@Listener(order = Order.LATE) public void onGameStart(GameInitializationEvent e) { // Setup Logger this.logger = new LoggerWrapper(loggerSlf4j); // Init! this.init(configPath.resolve("config.yml").toFile()); }
Example #5
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())); }