From 8d71ea7135dc14fa9654fbd84f30e23b7693004d Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Mon, 25 Jan 2021 01:54:50 -0500 Subject: [PATCH] Also provide a "proper" java.util.logger logger to plugins. --- .../proxy/plugin/loader/java/VelocityPluginModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/plugin/loader/java/VelocityPluginModule.java b/proxy/src/main/java/com/velocitypowered/proxy/plugin/loader/java/VelocityPluginModule.java index 77e944ac8..2bfc33863 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/plugin/loader/java/VelocityPluginModule.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/plugin/loader/java/VelocityPluginModule.java @@ -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);