mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-23 01:27:35 +01:00
Possible fixes for tickets #4, 5 & 6
This commit is contained in:
parent
52c1da74a2
commit
d8bb3718c8
@ -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;
|
||||
@ -2570,7 +2570,11 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user