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 Whether this group allows the given action.
set_allows_action(action, allow_action) → boolean Sets whether this group allows the performance the given action.
destroy() → boolean Destroys this group.
name :: string [RW] The name of this group.
players :: array[LuaPlayer] [R] The players in this group.
group_id :: uint [R] The group ID
valid :: boolean [R] Is this object valid?
object_name :: string [R] The class name of this object.
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

Whether this group allows the given action.

Parameters
action :: defines.input_action: The action in question.
set_allows_action(action, allow_action) → boolean

Sets whether this group allows the performance the given action.

Parameters
action :: defines.input_action: The action in question.
allow_action :: boolean: Whether to allow the specified action.
Return value
Whether the value was successfully applied.
destroy() → boolean

Destroys this group.

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

The name of this group.

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

The players in this group.

group_id :: uint [Read-only]

The group ID