mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-29 12:07:35 +01:00
Maybe an NPE ? :/
This commit is contained in:
parent
4ecfffd8cf
commit
b956f28fc0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user