mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-10-22 20:10:00 +02:00
build
This commit is contained in:
parent
b2f07e0c20
commit
5457ce8e59
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user