LuaPermissionGroup

A permission group that defines what players in this group are allowed to do.

class LuaPermissionGroup - sort
add_player(player) → boolean Adds the given player to this group.
remove_player(player) → boolean Removes the given player from this group.
allows_action(action) → boolean If this group allows the given action.
set_allows_action(action, boolean) → boolean Sets if the player is allowed to perform the given action.
destroy() → boolean Destroys this group.
name :: string [RW] The name of this group.
players :: array of LuaPlayer [R] The players in this group.
group_id :: uint [R] The group ID
valid :: boolean [R] Is this object valid?
help() → string All methods, and properties that this object supports.
add_player(player) → boolean

Adds the given player to this group.

Parameters
Return value
If the player was added.
remove_player(player) → boolean

Removes the given player from this group.

Parameters
Return value
If the player was removed.
allows_action(action) → boolean

If this group allows the given action.

Parameters
action: The defines.input_action value.
set_allows_action(action, boolean) → boolean

Sets if the player is allowed to perform the given action.

Parameters
action: The defines.input_action value.
Return value
If the value was applied.
destroy() → boolean

Destroys this group.

Return value
If the group was destroyed.
name :: string [Read-Write]

The name of this group.

Note: Setting to nil or an empty string sets the name to the default value.
players :: array of LuaPlayer [Read-only]

The players in this group.

group_id :: uint [Read-only]

The group ID