ZH-CN/AclGroupList
Jump to navigation
Jump to search
此函数返回所有ACL组的表.
语法
table aclGroupList ()
OOP 语法 什么是OOP?
- 提示: This function is a static function underneath the ACL Group class.
- 方法: ACLGroup.list(...)
Returns
如果成功,则返回所有ACL组的表;如果不存在ACL组,则返回空表.如果此函数因其他原因失败,则可以返回"false"/"nil".
示例
此示例显示如何按“showAclGroups”输出所有ACL组名
function showGroups(player) local groups = {} groups = aclGroupList() for i,v in ipairs(groups) do local name = aclGroupGetName(v) outputChatBox(tostring(name),player) end end addCommandHandler("showAclGroups",showGroups)
See Also
- aclCreate
- aclCreateGroup
- aclDestroy
- aclDestroyGroup
- aclGet
- aclGetGroup
- aclGetName
- aclGetRight
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupList
- aclGroupListACL
- aclGroupListObjects
- aclGroupRemoveACL
- aclGroupRemoveObject
- aclList
- aclListRights
- aclReload
- aclRemoveRight
- aclSave
- aclSetRight
- hasObjectPermissionTo
- isObjectInACLGroup