mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-02-23 15:49:19 +08:00
Also provide a "proper" java.util.logger logger to plugins.
This commit is contained in:
parent
4bc76b3012
commit
8d71ea7135
@ -31,6 +31,8 @@ class VelocityPluginModule implements Module {
|
||||
binder.bind(description.getMainClass()).in(Scopes.SINGLETON);
|
||||
|
||||
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)
|
||||
.toInstance(basePluginPath.resolve(description.getId()));
|
||||
binder.bind(PluginDescription.class).toInstance(description);
|
||||
|
Loading…
Reference in New Issue
Block a user