mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-05 02:19:52 +01:00
Improve item-spawn-blacklist load logging
This commit is contained in:
parent
c06dda886d
commit
89d592ce43
@ -551,7 +551,7 @@ public class Settings implements net.ess3.api.ISettings {
|
|||||||
private List<Material> _getItemSpawnBlacklist() {
|
private List<Material> _getItemSpawnBlacklist() {
|
||||||
final List<Material> epItemSpwn = new ArrayList<>();
|
final List<Material> epItemSpwn = new ArrayList<>();
|
||||||
if (ess.getItemDb() == null) {
|
if (ess.getItemDb() == null) {
|
||||||
logger.log(Level.FINE, "Aborting ItemSpawnBL read, itemDB not yet loaded.");
|
logger.log(Level.FINE, "Skipping item spawn blacklist read; item DB not yet loaded.");
|
||||||
return epItemSpwn;
|
return epItemSpwn;
|
||||||
}
|
}
|
||||||
for (String itemName : config.getString("item-spawn-blacklist", "").split(",")) {
|
for (String itemName : config.getString("item-spawn-blacklist", "").split(",")) {
|
||||||
@ -563,7 +563,7 @@ public class Settings implements net.ess3.api.ISettings {
|
|||||||
final ItemStack iStack = ess.getItemDb().get(itemName);
|
final ItemStack iStack = ess.getItemDb().get(itemName);
|
||||||
epItemSpwn.add(iStack.getType());
|
epItemSpwn.add(iStack.getType());
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
logger.log(Level.SEVERE, tl("unknownItemInList", itemName, "item-spawn-blacklist"));
|
logger.log(Level.SEVERE, tl("unknownItemInList", itemName, "item-spawn-blacklist"), ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return epItemSpwn;
|
return epItemSpwn;
|
||||||
|
Loading…
Reference in New Issue
Block a user