Skip to content

Commit

Permalink
patch skillapi main_class tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 30, 2019
1 parent acc9720 commit 2494865
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -50,6 +50,9 @@ public String getAttribute(Attribute attribute) {
// @Plugin DepenizenBukkit, SkillAPI
// -->
if (attribute.startsWith("main_class")) {
if (data == null || data.getMainClass() == null) {
return null;
}
return new SkillAPIClass(data.getMainClass().getData()).getAttribute(attribute.fulfill(1));
}

Expand Down

0 comments on commit 2494865

Please sign in to comment.