Use org.slf4j.Logger directly

This commit is contained in:
juanmuscaria
2021-09-15 13:54:28 -03:00
parent f82c85d3eb
commit 268c70bc51
2 changed files with 7 additions and 6 deletions

View File

@ -70,15 +70,16 @@
<pattern>com.zaxxer.hikari</pattern> <pattern>com.zaxxer.hikari</pattern>
<shadedPattern>fastlogin.hikari</shadedPattern> <shadedPattern>fastlogin.hikari</shadedPattern>
</relocation> </relocation>
<relocation>
<pattern>org.slf4j</pattern>
<shadedPattern>fastlogin.slf4j</shadedPattern>
</relocation>
<relocation> <relocation>
<pattern>net.md_5.bungee.config</pattern> <pattern>net.md_5.bungee.config</pattern>
<shadedPattern>fastlogin.config</shadedPattern> <shadedPattern>fastlogin.config</shadedPattern>
</relocation> </relocation>
</relocations> </relocations>
<artifactSet>
<excludes>
<exclude>org.slf4j:*</exclude>
</excludes>
</artifactSet>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>

View File

@ -72,9 +72,9 @@ public class FastLoginVelocity implements PlatformPlugin<CommandSource> {
private AsyncScheduler scheduler; private AsyncScheduler scheduler;
@Inject @Inject
public FastLoginVelocity(ProxyServer server, java.util.logging.Logger logger, @DataDirectory Path dataDirectory) { public FastLoginVelocity(ProxyServer server, Logger logger, @DataDirectory Path dataDirectory) {
this.server = server; this.server = server;
this.logger = CommonUtil.createLoggerFromJDK(logger); this.logger = logger;
this.dataDirectory = dataDirectory; this.dataDirectory = dataDirectory;
logger.info("FastLogin velocity."); logger.info("FastLogin velocity.");
} }