Skip to content

Commit

Permalink
add tag util.list_tag_bases
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 28, 2019
1 parent ffd7621 commit 7a74949
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,17 @@ else if (attribute.startsWith("list_denizen_commands")) {
event.setReplacedObject(CoreUtilities.autoAttrib(result, attribute.fulfill(1)));
}

// <--[tag]
// @attribute <util.list_tag_bases>
// @returns ListTag
// @description
// Returns a list of all currently loaded Denizen tag bases (including "player", "context", "util", "server", etc).
// -->
else if (attribute.startsWith("list_tag_bases")) {
ListTag result = new ListTag(TagManager.handlers.keySet());
event.setReplacedObject(CoreUtilities.autoAttrib(result, attribute.fulfill(1)));
}

// <--[tag]
// @attribute <util.time_at[<year>/<month>/<day> (<hour>:<minute>:<second>(:<millisecond>))]>
// @returns DurationTag
Expand Down

0 comments on commit 7a74949

Please sign in to comment.