forked from Upstream/mmocore
Bug Fix
This commit is contained in:
parent
55953d41ce
commit
3fa278a920
@ -57,7 +57,7 @@ public class ClassSelect extends EditableInventory {
|
|||||||
private final PlayerClass playerClass;
|
private final PlayerClass playerClass;
|
||||||
|
|
||||||
public ClassItem(ConfigurationSection config) {
|
public ClassItem(ConfigurationSection config) {
|
||||||
super(Material.BARRIER, config);
|
super(config.contains("item") ? Material.valueOf(UtilityMethods.enumName(config.getString("item"))) : Material.BARRIER, config);
|
||||||
|
|
||||||
Validate.isTrue(config.getString("function").length() > 6, "Couldn't find the class associated to: " + config.getString("function"));
|
Validate.isTrue(config.getString("function").length() > 6, "Couldn't find the class associated to: " + config.getString("function"));
|
||||||
String classId = UtilityMethods.enumName(config.getString("function").substring(6));
|
String classId = UtilityMethods.enumName(config.getString("function").substring(6));
|
||||||
|
Loading…
Reference in New Issue
Block a user