Skip to content

Commit

Permalink
improve in_group docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 7, 2018
1 parent fc0fb89 commit d86e714
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -1364,7 +1364,9 @@ else if (attribute.startsWith("created")) {
// @attribute <p@player.in_group[<group_name>]>
// @returns Element(Boolean)
// @description
// Returns whether the player is in the specified group (requires the player to be online)
// Returns whether the player is in the specified group.
// This requires an online player - if the player may be offline, consider using
// <@link tag p@player.in_group[group_name].global>.
// -->
if (attribute.startsWith("in_group")) {
if (Depends.permissions == null) {
Expand Down Expand Up @@ -1393,11 +1395,10 @@ else if (attribute.startsWith("created")) {
}

// <--[tag]
// @attribute <p@player.in_group[<group_name>].world>
// @attribute <p@player.in_group[<group_name>].world[<world>]>
// @returns Element(Boolean)
// @description
// Returns whether the player has the group in regards to the
// player's current world.
// Returns whether the player has the group in regards to a specific world.
// (Works with offline players)
// (Note: This may or may not be functional with your permissions system.)
// -->
Expand Down

0 comments on commit d86e714

Please sign in to comment.