Advertisement
Guest User

cb partial config

a guest
May 14th, 2014
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.54 KB | None | 0 0
  1. # Web Application Group Configuration
  2. # -----------------------------------------------------------------------------
  3. #
  4. # Some terminology:
  5. # - Primary group: A group setting such that the setting can only be set to
  6. # exactly one group. Most web applications have such a feature. Very few
  7. # permissions systems have such a feature.
  8. # NOTE: If you wish to utilize the primary group synchronization feature and
  9. # your permissions system does not support primary groups, then you must
  10. # list groups you wish to be synchronized into the web applications
  11. # primary group field in the "groups-treated-as-primary" setting (see
  12. # the synchronization options below). The permissions systems that this
  13. # applies to are: bPerms, PermissionsBukkit, PermissionsEx, and Vault.
  14. # - Secondary group(s): A group setting such that the setting can be set to
  15. # multiple groups or none.
  16.  
  17. # This section describes to Communitybridge how the web application stores
  18. # user group/role information.
  19. app-group-config:
  20. # If the web application has a primary group/role feature, configure it here.
  21. primary:
  22. enabled: true
  23. # The table that contains the primary group ID.
  24. table-name: xf_user
  25.  
  26. # The column on the table that contains the user ID.
  27. user-id-column: user_id
  28.  
  29. # If the primary group is stored in a key-value pair, set this to true.
  30. uses-key: false
  31.  
  32. # The column that the primary group ID is stored in. If uses-key is true,
  33. # this is the column that the "value" of the key-value pair is stored in.
  34. group-id-column: user_group_id
  35.  
  36. # If you set uses-key to true, then set the following three settings:
  37. # Key name for the key-value pair.
  38. key-name:
  39. # Column that the key name is in
  40. key-column:
  41.  
  42. # If the web application has a secondary groups feature, configure it here.
  43. secondary:
  44. enabled: true
  45. # The table that contains the secondary groups.
  46. table-name: xf_user
  47.  
  48. # The column on the table that contains the user ID.
  49. user-id-column: user_id
  50.  
  51. # Storage method. Set to one of the following:
  52. # - single: All the group ids in a single row & column separated by the
  53. # delimiter specified below.
  54. # - key-value: All the group ids are in a single row & column, separated
  55. # by the delimiter specified below, on a table that stores
  56. # its data in key-value pairs
  57. # - multiple-key-value: Group IDs are stored on a table of key-value pairs,
  58. # where the key name can appear in multiple rows.
  59. # - junction: The table can contain multiple rows for a given user_id,
  60. # each with their own group_id.
  61. storage-method: single
  62.  
  63. # The column that the group ID(s) are stored in:
  64. # (For the key-value method, this is the 'value' column)
  65. group-id-column: secondary_group_ids
  66.  
  67. # For single-column or key-value storage methods, the delimiter/separator
  68. # that separates the group IDs:
  69. # (ignored for junction and multiple-key-value storage method)
  70. group-id-delimiter: ','
  71.  
  72. # For the key-value storage method:
  73. # (ignored for the junction and single methods)
  74. # Key name for the key-value pair.
  75. key-name:
  76. # Column that the key name is in
  77. key-column:
  78.  
  79. # This applies to the junction storage method. If there are additional columns on
  80. # the junction table that need to be set to a value different from the table default
  81. # add the column name and value to this list.
  82. additional-columns:
  83. # group_leader: 0
  84. # user_pending: 0
  85.  
  86. # Simple Synchronization Configuration
  87. # NOTE: If you wish to utilize the primary group synchronization feature and
  88. # your permissions system does not support primary groups, then you must
  89. # list groups you wish to be synchronized into the web applications
  90. # primary group field in the "groups-treated-as-primary" setting. The
  91. # permissions systems that this applies to are: bPerms, PermissionsBukkit,
  92. # PermissionsEx, Vault, and zPermissions.
  93. simple-synchronization:
  94. # Set this to true for simple synchronization
  95. enabled: true
  96.  
  97. # Controls the "direction" of synchronization.
  98. # Options are: two-way, web-application, or minecraft.
  99. # - two-way: Changes on either side are synchronized to the other.
  100. # - web-application: Changes made in the web-application are
  101. # synchronized to the Minecraft server.
  102. # - minecraft: Changes made in Minecraft are synchronized to the
  103. # web-application.
  104. direction: two-way
  105.  
  106. # If player hasn't been seen before on server, CommunityBridge will use this
  107. # setting to determine the direction of the synchronization. 'web-application'
  108. # is the only option available at this time.
  109. first-direction: web-application
  110.  
  111. # Set this to true if you want the player to be notified when their primary
  112. # group changes.
  113. primary-group-change-notify: false
  114.  
  115. # This is a safety net. Since CommunityBridge directly modifies group
  116. # membership information, there is a risk that a misconfiguration could
  117. # cause the main administrative account (e.g. super-user) of a webapp to not
  118. # have administrative privileges to the forum, potentially leaving the forum
  119. # in a state where it cannot be administered. To protect against this
  120. # possibility, provide the user-id of the main administrative account of the
  121. # web application here. Generally, this is the account created when the web
  122. # application was installed. For this user-id, group changes will not be
  123. # synchronized from Minecraft to the web application, that is, the
  124. # synchronization for this user will be as if direction was set to
  125. # 'web' (see above). Be absolutely sure this user-id is your super-user
  126. # all-access administrative account.
  127. super-user-user-id: '1'
  128.  
  129. # If you're using primary group synchronization and a permissions system that
  130. # does NOT have the notion of primary groups (bPerms, PermissionsBukkit,
  131. # PermissionsEx, Vault) you must list permission group names that you wish to
  132. # be synchronized into the user's primary group field on the web application
  133. # here. Be sure to include these groups in the group-mapping as well.
  134. # Sample: groups-treated-as-primary: [guest, member, premium]
  135. groups-treated-as-primary: [unregistered, registered, administrative, moderating, vip, epic, hero, elite, champion, legend, ultimate, infamous, notorious, owner]
  136.  
  137. # List groups and group IDs to be synchronized here. On the left side of
  138. # the colon put a web application's group ID. On the right side of the colon
  139. # put the corresponding permissions group name. Only list group IDs and
  140. # group names you wish to be synchronized.
  141.  
  142. # NOTE: GroupManager will not create groups on the fly. So any groups you
  143. # specify here must already exist. That is, you need to have used
  144. # mangadd <groupname>.
  145. # NOTE: Regarding ladders(promotions/inherited groups): Either ALL of the
  146. # groups that are part of a ladder need to have entries on this table
  147. # and have corresponding group on the web application or NONE of them
  148. # should be on this list. It may be that you want to use the
  149. # unregistered/registered group settings instead.
  150. group-mapping:
  151. '1': 'unregistered'
  152. '2': 'registered'
  153. '3': 'administrative'
  154. '4': 'moderating'
  155. '5': 'vip'
  156. '6': 'epic'
  157. '7': 'hero'
  158. '8': 'elite'
  159. '9': 'champion'
  160. '10': 'legend'
  161. '11': 'ultimate'
  162. '12': 'infamous'
  163. '13': 'notorious'
  164. '14': 'owner'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement