This commit is contained in:
Jules 2022-02-06 23:54:24 +01:00
parent b2f07e0c20
commit 5457ce8e59

View File

@ -28,6 +28,7 @@ public class RegisteredSkill {
public RegisteredSkill(SkillHandler<?> handler, ConfigurationSection config) { public RegisteredSkill(SkillHandler<?> handler, ConfigurationSection config) {
this.handler = handler; this.handler = handler;
name = Objects.requireNonNull(config.getString("name"), "Could not find skill name"); name = Objects.requireNonNull(config.getString("name"), "Could not find skill name");
icon = MMOCoreUtils.readIcon(Objects.requireNonNull(config.getString("material"), "Could not find skill icon")); icon = MMOCoreUtils.readIcon(Objects.requireNonNull(config.getString("material"), "Could not find skill icon"));
lore = Objects.requireNonNull(config.getStringList("lore"), "Could not find skill lore"); lore = Objects.requireNonNull(config.getStringList("lore"), "Could not find skill lore");