Fix logger init (Fixes #178)

This commit is contained in:
games647
2017-10-04 09:22:21 +02:00
parent 6daa654af8
commit e32b0232e9
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@
[//]: # (This can be found by running `/pl`)
### Environment description
[//]: # (Standalone server/Bungeecord network, SQLite/MySQL, ...)
[//]: # (Standalone server/Bungeecord network with version and build number , SQLite/MySQL, ...)
### Plugin version or build number (don't write latest):
[//]: # (This can be found by running `/version plugin-name`.)

View File

@ -31,12 +31,14 @@ import org.slf4j.Logger;
public class FastLoginBungee extends Plugin implements PlatformPlugin<CommandSender> {
private final ConcurrentMap<PendingConnection, BungeeLoginSession> session = Maps.newConcurrentMap();
private final Logger logger = CommonUtil.createLoggerFromJDK(getLogger());
private FastLoginCore<ProxiedPlayer, CommandSender, FastLoginBungee> core;
private Logger logger;
@Override
public void onEnable() {
logger = CommonUtil.createLoggerFromJDK(getLogger());
core = new FastLoginCore<>(this);
core.load();
if (!core.setupDatabase()) {