You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AbstractFactionsPlugin.instance().log("Null material name found");
28
28
returndefaultMaterial;
29
29
}
30
30
31
31
Materialmaterial = Material.getMaterial(name);
32
32
if (material == null) {
33
33
material = map.get(name.toUpperCase());
34
+
if (material != null) {
35
+
AbstractFactionsPlugin.instance().getLogger().warning("Outdated material name \"" + name + "\" found in a config - update it to \"" + material.name() + "\" ASAP!");
36
+
}
34
37
}
35
38
36
39
if (material == null) {
37
-
AbstractFactionsPlugin.instance().log(Level.INFO, "Material does not exist: " + name.toUpperCase());
40
+
if (!name.equalsIgnoreCase("exampleMaterial")) {
41
+
AbstractFactionsPlugin.instance().log(Level.INFO, "Material does not exist: " + name.toUpperCase());
42
+
}
38
43
returndefaultMaterial;
39
44
}
40
45
@@ -59,6 +64,5 @@ public static void load() {
59
64
}
60
65
map.put(nNull ? n : l, nNull ? matL : matN);
61
66
});
62
-
AbstractFactionsPlugin.instance().getLogger().info(String.format("Loaded %s material mappings.", map.size()));
0 commit comments