Skip to Content
ドキュメントOxOx LibModulesAclサーバー

サーバー

組み込み ACL システムのラッパー。lib.addCommand と ox_groups パーミッションを扱います。
参照ベーシック・エース&プリンシプルの概要/ガイド をご覧ください。

lib.addAce

プリンシパルにエースパーミッションを割り当てる。3 番目のパラメータのデフォルトは ‘allow’ です。falseはパーミッションを’deny’に設定する。

lib.addAce(principal, ace, allow) lib.addAce('group.admin', 'command.say')
  • 校長:string
  • エースstring
  • を許可する:boolean

lib.removeAce

プリンシパルからエースパーミッションを削除する。3 番目のパラメータのデフォルトは ‘allow’ です。falseはパーミッションを’deny’に設定する。

lib.removeAce(principal, ace, allow) lib.removeAce('group.admin', 'command.say')
  • 校長:string
  • エースstring
  • を許可する:boolean

lib.addPrincipal

プリンシパルを親プリンシパルに割り当てます。子プリンシパルは親プリンシパルからパーミッションを継承します。

lib.addPrincipal(child, parent) lib.addPrincipal('player.1', 'group.moderator')
  • 子供string
  • 親だ:string

lib.removePrincipal

親プリンシパルからプリンシパルを削除します。

lib.removePrincipal(child, parent) lib.removePrincipal('player.1', 'group.moderator')
  • 子供string
  • 親だ:string
Last updated on