Skip to content

Commit

Permalink
Add Essentials <p@player.is_vanished> tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortifier42 committed Dec 29, 2015
1 parent 4a13709 commit 82900a9
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -84,6 +84,17 @@ public String getAttribute(Attribute attribute) {
return new Element(essUser.isMuted()).getAttribute(attribute.fulfill(1));
}

// <--[tag]
// @attribute <p@player.is_vanished>
// @returns Element(Boolean)
// @description
// Returns whether the player is vanished.
// @plugin Depenizen, Essentials
// -->
if (attribute.startsWith("is_vanished")) {
return new Element(essUser.isVanished()).getAttribute(attribute.fulfill(1));
}

// <--[tag]
// @attribute <p@player.home_list>
// @returns dList(Element/dLocation)
Expand Down

0 comments on commit 82900a9

Please sign in to comment.