Skip to content

Commit

Permalink
Merge pull request #42 from Fortifier42/master
Browse files Browse the repository at this point in the history
Tags
  • Loading branch information
mcmonkey4eva committed Oct 9, 2015
2 parents 6461308 + 2df21f3 commit 6068f2f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/net/aufdemrand/denizen/tags/core/ServerTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ public void serverTag(ReplaceableTagEvent event) {
return;
}

// <--[tag]
// @attribute <server.has_whitelist>
// @returns Element(boolean)
// @description
// returns true if the server's whitelist is active, otherwise returns false.
// -->
if (attribute.startsWith("has_whitelist")) {
event.setReplaced(new Element(Bukkit.hasWhitelist()).getAttribute(attribute.fulfill(1)));
return;
}

// <--[tag]
// @attribute <server.has_flag[<flag_name>]>
// @returns Element(boolean)
Expand Down

0 comments on commit 6068f2f

Please sign in to comment.