Maybe an NPE ? :/

This commit is contained in:
Xephi59 2015-07-22 21:45:53 +02:00
parent 4ecfffd8cf
commit b956f28fc0

View File

@ -428,7 +428,10 @@ public class AuthMe extends JavaPlugin {
}
if (database != null) {
database.close();
try {
database.close();
} catch (Exception e) {
}
}
if (Settings.isBackupActivated && Settings.isBackupOnStop) {
@ -444,8 +447,7 @@ public class AuthMe extends JavaPlugin {
return authme;
}
public void savePlayer(Player player)
throws IllegalStateException, NullPointerException {
public void savePlayer(Player player) {
try {
if ((citizens.isNPC(player)) || (Utils.getInstance().isUnrestricted(player)) || (CombatTagComunicator.isNPC(player))) {
return;