3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Also provide a "proper" java.util.logger logger to plugins.

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-01-25 01:54:50 -05:00
Ursprung 4bc76b3012
Commit 8d71ea7135

Datei anzeigen

@ -31,6 +31,8 @@ class VelocityPluginModule implements Module {
binder.bind(description.getMainClass()).in(Scopes.SINGLETON); binder.bind(description.getMainClass()).in(Scopes.SINGLETON);
binder.bind(Logger.class).toInstance(LoggerFactory.getLogger(description.getId())); binder.bind(Logger.class).toInstance(LoggerFactory.getLogger(description.getId()));
binder.bind(java.util.logging.Logger.class)
.toInstance(java.util.logging.Logger.getLogger(description.getId()));
binder.bind(Path.class).annotatedWith(DataDirectory.class) binder.bind(Path.class).annotatedWith(DataDirectory.class)
.toInstance(basePluginPath.resolve(description.getId())); .toInstance(basePluginPath.resolve(description.getId()));
binder.bind(PluginDescription.class).toInstance(description); binder.bind(PluginDescription.class).toInstance(description);