Don't log SERVER_ECONOMY_ACCOUNT warning if it's not set

This commit is contained in:
Phoenix616 2020-07-04 18:18:59 +01:00
parent efe9ff7024
commit 8c1c80e138
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
1 changed files with 3 additions and 1 deletions

View File

@ -432,7 +432,9 @@ public class NameManager implements Listener {
}
if (serverEconomyAccount == null || serverEconomyAccount.getUuid() == null) {
serverEconomyAccount = null;
ChestShop.getBukkitLogger().log(Level.WARNING, "Server economy account setting '" + Properties.SERVER_ECONOMY_ACCOUNT + "' doesn't seem to be the name of a known player! Please log in at least once in order for the server economy account to work.");
if (!Properties.SERVER_ECONOMY_ACCOUNT.isEmpty()) {
ChestShop.getBukkitLogger().log(Level.WARNING, "Server economy account setting '" + Properties.SERVER_ECONOMY_ACCOUNT + "' doesn't seem to be the name of a known player! Please log in at least once in order for the server economy account to work.");
}
}
} catch (SQLException e) {
e.printStackTrace();