Possible fixes for tickets #4, 5 & 6

This commit is contained in:
HappyPikachu 2015-02-09 19:45:13 -05:00
parent 52c1da74a2
commit d8bb3718c8

View File

@ -1866,7 +1866,7 @@ public class Quester {
}
public static String prettyItemString(String itemName) {
String baseString = Material.getMaterial(itemName).toString();
String baseString = Material.matchMaterial(itemName).toString();
String[] substrings = baseString.split("_");
String prettyString = "";
int size = 1;
@ -2571,6 +2571,10 @@ public class Quester {
ConfigurationSection dataSec = data.getConfigurationSection("questData");
if (dataSec.getKeys(false).isEmpty()) {
return false;
}
for (String key : dataSec.getKeys(false)) {
ConfigurationSection questSec = dataSec.getConfigurationSection(key);