mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-09-30 09:01:40 +02:00
Fix logger init (Fixes #178)
This commit is contained in:
2
.github/ISSUE_TEMPLATE.md
vendored
2
.github/ISSUE_TEMPLATE.md
vendored
@@ -15,7 +15,7 @@
|
|||||||
[//]: # (This can be found by running `/pl`)
|
[//]: # (This can be found by running `/pl`)
|
||||||
|
|
||||||
### Environment description
|
### 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):
|
### Plugin version or build number (don't write latest):
|
||||||
[//]: # (This can be found by running `/version plugin-name`.)
|
[//]: # (This can be found by running `/version plugin-name`.)
|
||||||
|
@@ -31,12 +31,14 @@ import org.slf4j.Logger;
|
|||||||
public class FastLoginBungee extends Plugin implements PlatformPlugin<CommandSender> {
|
public class FastLoginBungee extends Plugin implements PlatformPlugin<CommandSender> {
|
||||||
|
|
||||||
private final ConcurrentMap<PendingConnection, BungeeLoginSession> session = Maps.newConcurrentMap();
|
private final ConcurrentMap<PendingConnection, BungeeLoginSession> session = Maps.newConcurrentMap();
|
||||||
private final Logger logger = CommonUtil.createLoggerFromJDK(getLogger());
|
|
||||||
|
|
||||||
private FastLoginCore<ProxiedPlayer, CommandSender, FastLoginBungee> core;
|
private FastLoginCore<ProxiedPlayer, CommandSender, FastLoginBungee> core;
|
||||||
|
private Logger logger;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
|
logger = CommonUtil.createLoggerFromJDK(getLogger());
|
||||||
|
|
||||||
core = new FastLoginCore<>(this);
|
core = new FastLoginCore<>(this);
|
||||||
core.load();
|
core.load();
|
||||||
if (!core.setupDatabase()) {
|
if (!core.setupDatabase()) {
|
||||||
|
Reference in New Issue
Block a user