Log bungeeauth exceptions

This commit is contained in:
games647
2016-08-18 09:15:29 +02:00
parent fcd98fce43
commit 71362dfd7d
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
######1.8
* Fix third-party not premium player detection
* Fix ProtocolSupport BungeeCord
######1.7.1
* Fix BungeeCord autoRegister (Fixes #46)

View File

@ -4,6 +4,7 @@ import java.lang.reflect.Method;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import java.util.logging.Level;
import me.vik1395.BungeeAuth.ListenerClass;
import me.vik1395.BungeeAuth.Main;
@ -41,7 +42,7 @@ public class BungeeAuthHook implements BungeeAuthPlugin {
//proparly not thread-safe
ListenerClass.prelogin.get(player.getName()).cancel();
} catch (Exception ex) {
Main.plugin.getLogger().severe("[BungeeAuth] Error force loging in player");
Main.plugin.getLogger().log(Level.SEVERE, "Error force loging in player", ex);
return false;
}
@ -86,7 +87,7 @@ public class BungeeAuthHook implements BungeeAuthPlugin {
//proparly not thread-safe
forceLogin(player);
} catch (Exception ex) {
Main.plugin.getLogger().severe("[BungeeAuth] Error when creating a new player in the Database");
Main.plugin.getLogger().log(Level.SEVERE, "[BungeeAuth] Error when creating a new player in the Database", ex);
return false;
}