File GroupTools.lua
Functions
GT:IsGroup () | Check if player is in a group. |
GT:IsGroupFull () | Check if the group is full. |
GT:IsGroupLeader (name) | Check if the unit is the group leader. |
GT:IsInGroup (name) | Check if the unit is in the player's group. |
GT:IsLFGGroup () | Check if the player is in an LFG group. |
GT:IsRaid () | Check if player is in a raid. |
GT:IsRaidAssistant (name) | Check if unit is raid assistant. |
GT:IsRaidLeaderOrAssistant (name) | Check if the unit is raid leader or assistant. |
Tables
Command.GroupTools | Table containing all GroupTools methods. |
Functions
- GT:IsGroup ()
-
Check if player is in a group.
Return value:
- True if player is in group, false otherwise.
- GT:IsGroupFull ()
-
Check if the group is full. NOTE: Only checks for 5 players in a party and 40 players in a raid. DOES NOT respect 10 and 25 man raids.
Return value:
- True if the group is full, false otherwise.
- GT:IsGroupLeader (name)
-
Check if the unit is the group leader.
Parameters:
-
name
: Name/Unit to check, defaults to player.
Return value:
- True if unit is group leader, false otherwise.
-
- GT:IsInGroup (name)
-
Check if the unit is in the player's group.
Parameters:
-
name
: Unit/Player Name to check.
Return value:
- True if the unit is in group, false otherwise.
-
- GT:IsLFGGroup ()
-
Check if the player is in an LFG group.
Return value:
- True if the player is in an LFG group, false otherwise.
- GT:IsRaid ()
-
Check if player is in a raid.
Return value:
- True if the player is in a raid, false otherwise.
- GT:IsRaidAssistant (name)
-
Check if unit is raid assistant.
Parameters:
-
name
: Unit to check, defaults to player.
Return value:
- True if assistant, false otherwise.
-
- GT:IsRaidLeaderOrAssistant (name)
-
Check if the unit is raid leader or assistant.
Parameters:
-
name
: Unit to check, defaults to player.
Return value:
- True if the unit is raid leader or assistant, false otherwise.
-