From f1950543034369b9d54aeb5f44abb9f81717b24e Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Wed, 16 Dec 2015 23:58:21 +0100 Subject: [PATCH] Should fix the /register auto-login feature --- .../fr/xephi/authme/process/register/AsyncRegister.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/xephi/authme/process/register/AsyncRegister.java b/src/main/java/fr/xephi/authme/process/register/AsyncRegister.java index 668c0e3d9..fb102ec96 100644 --- a/src/main/java/fr/xephi/authme/process/register/AsyncRegister.java +++ b/src/main/java/fr/xephi/authme/process/register/AsyncRegister.java @@ -141,8 +141,10 @@ public class AsyncRegister { return; } if (!Settings.forceRegLogin) { - PlayerCache.getInstance().addPlayer(auth); - database.setLogged(name); + //PlayerCache.getInstance().addPlayer(auth); + //database.setLogged(name); + // TODO: check this... + plugin.getManagement().performLogin(player, "dontneed", true); } plugin.otherAccounts.addPlayer(player.getUniqueId()); ProcessSyncPasswordRegister sync = new ProcessSyncPasswordRegister(player, plugin);