Minor: print stack trace if AuthMe is disabled due to exception, remove unused imports
This commit is contained in:
parent
6903e058d5
commit
d1b6161687
@ -140,6 +140,7 @@ public class AuthMe extends JavaPlugin {
|
|||||||
YamlParseException yamlParseException = ExceptionUtils.findThrowableInCause(YamlParseException.class, th);
|
YamlParseException yamlParseException = ExceptionUtils.findThrowableInCause(YamlParseException.class, th);
|
||||||
if (yamlParseException == null) {
|
if (yamlParseException == null) {
|
||||||
ConsoleLogger.logException("Aborting initialization of AuthMe:", th);
|
ConsoleLogger.logException("Aborting initialization of AuthMe:", th);
|
||||||
|
th.printStackTrace();
|
||||||
} else {
|
} else {
|
||||||
ConsoleLogger.logException("File '" + yamlParseException.getFile() + "' contains invalid YAML. "
|
ConsoleLogger.logException("File '" + yamlParseException.getFile() + "' contains invalid YAML. "
|
||||||
+ "Please run its contents through http://yamllint.com", yamlParseException);
|
+ "Please run its contents through http://yamllint.com", yamlParseException);
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import fr.xephi.authme.service.BukkitService;
|
|||||||
import fr.xephi.authme.settings.Settings;
|
import fr.xephi.authme.settings.Settings;
|
||||||
import fr.xephi.authme.settings.properties.LimboSettings;
|
import fr.xephi.authme.settings.properties.LimboSettings;
|
||||||
import fr.xephi.authme.util.FileUtils;
|
import fr.xephi.authme.util.FileUtils;
|
||||||
import fr.xephi.authme.util.PlayerUtils;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|||||||
@ -8,7 +8,6 @@ import fr.xephi.authme.data.limbo.LimboPlayer;
|
|||||||
import fr.xephi.authme.initialization.DataFolder;
|
import fr.xephi.authme.initialization.DataFolder;
|
||||||
import fr.xephi.authme.service.BukkitService;
|
import fr.xephi.authme.service.BukkitService;
|
||||||
import fr.xephi.authme.util.FileUtils;
|
import fr.xephi.authme.util.FileUtils;
|
||||||
import fr.xephi.authme.util.PlayerUtils;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user