Advertisement
Guest User

communitybridge

a guest
Apr 15th, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.91 KB | None | 0 0
  1.  
  2. # Community Bridge Configuration File
  3. # -----------------------------------------------------------------------------
  4.  
  5. # General Settings
  6. # -----------------------------------------------------------------------------
  7. general:
  8. # Log level controls the degree of detail that is sent to the console/log
  9. # The possible settings are (in order of quietest to noisiest:
  10. # info, config, fine, finer, finest, all
  11. # - During configuration, I recommend using 'config'.
  12. # - During normal operation, I recommend using 'info'.
  13. # - If you want to see the notifications that the synchronize and reminder
  14. # notices have been sent, use 'fine'
  15. # - During troubleshooting of problems, set this to either finest or all.
  16. log-level: all
  17.  
  18. # Allow plugin metrics to start up for this plugin. Please turn on
  19. # metrics! It helps plugin authors determine what features to include!
  20. # For more details see:
  21. # http://dev.bukkit.org/bukkit-plugins/communitybridge-fm/pages/why-plugin-metrics/
  22. # Enable/Disable for all plugins by editing plugins/PluginMetrics/config.yml
  23. # and setting 'opt-out' to false.
  24. plugin-metrics: true
  25.  
  26. # Turns on the achievements (rewards) system. See achievements.yml for more
  27. # information.
  28. use-achievements: false
  29.  
  30. # Set the unit of measurement for sync and reminder scheduling. Options are:
  31. # ticks, seconds, minutes, hours, or days. Note that this applies to both
  32. # auto-sync-every and auto-remind-every.
  33. auto-every-unit: minutes
  34.  
  35. # This is a timer that will check and sync all data with your database at a
  36. # set interval. Otherwise group and player statistics will only be
  37. # synchronized when the player joins and leaves the Minecraft server.
  38. auto-sync: true
  39.  
  40. # The interval for the auto-sync timer, this should not be set any lower than
  41. # 20 minutes.
  42. auto-sync-every: 20
  43.  
  44. # Enables/disables synchronization during join and quit events. Recommend both
  45. # being set to true.
  46. sync-during-join: true
  47. sync-during-quit: true
  48.  
  49. # NOTE: PermissionsBukkit will not create groups on the fly. So any groups you
  50. # specify in the linking or synchronization sections must already
  51. # exist. It will not be feasible to fix this issue due to the lack of
  52. # a real API.
  53. # NOTE: zPermissions will not create groups on the fly. So any groups you
  54. # specify in the linking or synchronization sections must already
  55. # exist. That is, you need to have used: permissions group <group>
  56. # create. Further, zPermissions lacks a real API. A player's group
  57. # assignment can fail without CommunityBridge being aware of the
  58. # failure.
  59.  
  60. # The permissions system you're using. A permissions system is required for
  61. # the following features:
  62. # * Group Synchronization (both primary and secondary)
  63. # * Unregistered/Registered group assignment (sub-features of 'linking')
  64. # Current Options are: bPerms, GroupManager, PermsBukkit, PEX, Vault,
  65. # zPermissions.
  66. permissions-system: PEX
  67.  
  68. # If ~APPURL~ appears in a message in messages.yml, it will be replaced with
  69. # this:
  70. application-url: www.cm-gaming.org
  71.  
  72. # Set the date format for any of the dates used by CommunityBridge.
  73. date-format: "yyyy-MM-dd hh:mm:ss a"
  74.  
  75. # Database Settings
  76. # -----------------------------------------------------------------------------
  77. # Please ensure if you run your Minecraft server on a remote host
  78. # that your MySQL server allows REMOTE connections. This WILL NOT WORK unless
  79. # your MySQL server is configured to allow connections from the machine that
  80. # your Minecraft server is running on. If you don't know what that means,
  81. # consult your hosting provider on how to configure your MySQL server correctly.
  82. # All of this information should be the same server and database used by your
  83. # web-application...
  84. database:
  85. # Hostname for your MySQL Server
  86. hostname: **********************
  87.  
  88. # MySQL Port
  89. port: 3306
  90.  
  91. # Database Name
  92. name: ************************
  93.  
  94. # Database Username
  95. username: ************************
  96.  
  97. # Database Password
  98. password: ************************
  99.  
  100. # SQL binding address
  101. # Normally you won't need to set anything here.
  102. # Recommended setting is blank.
  103. # If needed the local binding address for the SQL client can be set here.
  104. # Use 'minecraft' to use the address set in the server.properties.
  105. binding-address:
  106.  
  107. # Player Linking Settings
  108. # -----------------------------------------------------------------------------
  109. # Settings associated with linking a Minecraft player with a web application's
  110. # user. As this feature is a prerequisite for all other features, it cannot
  111. # be disabled.
  112. player-user-linking:
  113. # Use this to specify which method you are using: uuid, name, or both.
  114. # uuid - Players are identified by uuid in your web application's database.
  115. # name - Players are identified by player name in your web application's database.
  116. # both - Communitybridge will try both ways before giving up.
  117. linking-method: both
  118.  
  119. # If you want the player disconnected from the game if they haven't
  120. # registered, then set this to true. They will be shown the
  121. # link-unregistered-player message (in message.yml) on the disconnected
  122. # screen.
  123. kick-unregistered: false
  124.  
  125. # This is a timer that will notify unregistered users to register every few
  126. # minutes.
  127. auto-remind: true
  128.  
  129. # The interval for the auto-remind timer, this should be no less than
  130. # 5-10 minutes. Note that this uses the units specified above in
  131. # auto-every-unit.
  132. auto-remind-every: 10
  133.  
  134. # Set these to true to inform players when they log in if they're linked to
  135. # the web application. These correspond to the link-unregistered-player and
  136. # link-registered-player messages in messages.yml.
  137. notify-registered-player: true
  138. notify-unregistered-player: true
  139.  
  140. # If you have a permissions system and you want the player to be placed
  141. # in a group based on (un)registered status, set the following.
  142. # If left blank the setting won't be used. If a group-synchronization
  143. # feature is turned on, the 'registered-player-group' won't be used.
  144. unregistered-player-group:
  145. registered-player-group:
  146. notify-player-of-group: true
  147.  
  148. # If you want a player to be added to the 'registered-player-group' ONLY if:
  149. # * they are a member of the unregistered-player-group OR
  150. # * they have no assigned groups
  151. # then set this to true.
  152. registered-former-unregistered-only: true
  153.  
  154. # If you want a player to be added to the 'unregistered-player-group' if they
  155. # are no longer registered, set this to true.
  156. unregister-former-registered: false
  157.  
  158. # This is where we specify how to associate a Minecraft player with a web
  159. # application user. We do this by matching up the player name with a name
  160. # stored in the web application's database.
  161. #
  162. # If you want your players to use the same name on both the server and the
  163. # web application, then you will need to provide the table and column
  164. # information where the web application relates its user IDs with the user's
  165. # name/login ID/login/username.
  166. #
  167. # If you want to allow them to use a different name on the web application,
  168. # you need to add a custom field or column to your web application's database
  169. # for their minecraft name and specify below where the minecraft name is stored
  170. # in the web application's database.
  171.  
  172. # The name of the table which contains the columns:
  173. table-name: xf_user
  174.  
  175. # Column on the table that contains the user ID. Typically, the column will be
  176. # named something like user_id or member_id and contains a unique number for each
  177. # user.
  178. user-id-column: user_id
  179.  
  180. # If the player name is stored in a key-value pair of columns instead of
  181. # its own column, set this to true:
  182. uses-key: false
  183.  
  184. # If you set 'linking-uses-key' to false, then set this to the column that
  185. # the minecraft uuid or playername is stored in. Otherwise, leave it empty.
  186. identifier-column: username
  187.  
  188. # If you set 'linking-uses-key' to true, then set the key column, value
  189. # column, and the key-name here. Otherwise, leave these fields empty.
  190. key-name:
  191. key-column:
  192. value-column:
  193.  
  194. # Used either for requiring and avatar or rewarding the existence of an avatar.
  195. app-avatar-config:
  196. enabled: false
  197. # Table that contains the avatar column
  198. table-name: xf_user
  199. # Column on the avatar table that contains the user ID.
  200. user-id-column: user_id
  201. # Column on the avatar table that contains the avatar information. If this
  202. # column contains data, the user is assumed by CommunityBridge to have an
  203. # avatar.
  204. avatar-column: avatar_date
  205.  
  206. # Used for post count awards or for requiring a post count.
  207. app-post-count-config:
  208. enabled: false
  209. # Table that contains the post count column
  210. table-name: xf_user
  211. # Column on the avatar table that contains the user ID.
  212. user-id-column: user_id
  213. # Column containing the user's post count.
  214. post-count-column: message_count
  215.  
  216. # Requirements
  217. # -----------------------------------------------------------------------------
  218. requirement:
  219. # Set this to true to require an avatar to be set to access the game.
  220. # Requires app-avatar-config settings to be enabled and configured correctly.
  221. avatar: false
  222. # Require the player to have at least this many posts before being able to
  223. # play. Requires app-post-count-config settings to be enabled and configured
  224. # correctly.
  225. post-count:
  226. enabled: false
  227. minimum: 2
  228.  
  229. # Statistics Tracking
  230. # -----------------------------------------------------------------------------
  231. # In general, to make this work, your web application will need to support
  232. # custom profile fields or a similar feature. CommunityBridge will put the
  233. # information in the database. It is up to you to configure your web application
  234. # so that it displays the information.
  235. statistics:
  236. # Enables statistics tracking. Nothing will be tracked unless you also enable
  237. # at least one of the trackers below.
  238. enabled: false
  239. # Name of the table to insert the tracking information on to.
  240. table-name: xf_user_field_value
  241. # Name of the column that contains the player's User ID on the table.
  242. user-id-column: user_id
  243. # Set this to true if data on the table is stored in key-value pairs.
  244. uses-key: false
  245.  
  246. # If uses-key is true, set these as well. These settings are not used if
  247. # uses-key is false.
  248. key-column: field_id
  249. value-column: field_value
  250.  
  251. # Some web applications require an insert the first time a custom profile
  252. # field is filled with data (SMF, for example). If that's the case, enable
  253. # this and provide the required information.
  254. insert:
  255. enabled: false
  256. # Options are: generic and smf.
  257. method: generic
  258.  
  259. # Required for the 'smf' method, ignored for other methods. Most likely id_theme.
  260. theme-id-column: id_theme
  261.  
  262. # Required for the 'smf' method, ignored for other methods. Most likely value is 1.
  263. theme-id: 1
  264.  
  265. # Individual trackers
  266. # -------------------
  267. trackers:
  268. # Below each tracker can be enabled and configured. For each tracker:
  269. # * If uses key is true, set column-or-key-name to the key name OR
  270. # If uses key is false, set column-or-key-name to the column name
  271. # For some trackers, there is a formatted version as well. For those
  272. # trackers, the formatted version is optional. If you wish to use the
  273. # formatted version, set the formatted-column-or-key-name appropriately.
  274. # If set, the formatted column will be filled in with a human readable
  275. # string.
  276.  
  277. # Online Status: Show a player is playing on the server in the forums.
  278. online-status:
  279. enabled: false
  280. column-or-key-name: cb_online
  281. # Set this to what should be stored in the field when the user is online.
  282. online-value: Yes
  283. # Set this to what should be stored in the field when the user is offline.
  284. offline-value: No
  285.  
  286. # Last Online: Record the time that player was last online
  287. last-online:
  288. enabled: false
  289. # Numeric column, should be able to store a 32 bit integer. Will be seconds since epoch.
  290. column-or-key-name:
  291. # String (varchar, etc.) column at least 60 characters in length.
  292. formatted-column-or-key-name:
  293.  
  294. # Game Time: Record how much time the player has played.
  295. # Requires the last-online tracker to be turned on as well.
  296. game-time:
  297. enabled: false
  298. # Numeric column, should be able to store a 32 bit integer. Time played in seconds.
  299. column-or-key-name:
  300. formatted-column-or-key-name:
  301.  
  302. # Player's current level
  303. level:
  304. enabled: false
  305. # Numeric column, a single byte will be sufficient in most cases.
  306. column-or-key-name:
  307.  
  308. # Player's current progress toward next level
  309. current-xp:
  310. enabled: false
  311. # Numeric floating point column.
  312. column-or-key-name:
  313. # String column with at least 4 characters capacity.
  314. formatted-column-or-key-name:
  315.  
  316. # Player's XP total
  317. total-xp:
  318. enabled: false
  319. # Numeric column, capable of storing a 32 bit integer.
  320. column-or-key-name:
  321.  
  322. # Player's current health
  323. health:
  324. enabled: false
  325. # Numeric column, a single byte should be sufficient.
  326. column-or-key-name:
  327.  
  328. # Lifeticks; the amount of time the player has been alive.
  329. lifeticks:
  330. enabled: false
  331. # Numeric column, capable of storing a 32 bit integer.
  332. column-or-key-name:
  333. # String field with at least 100 characters of storage.
  334. formatted-column-or-key-name:
  335.  
  336. # Wallet. The amount of money the player currently has. REQUIRES VAULT.
  337. wallet:
  338. enabled: false
  339. # Numeric column capable of storing a "double" floating point number.
  340. column-or-key-name:
  341.  
  342. # Web Application Group Configuration
  343. # -----------------------------------------------------------------------------
  344. #
  345. # Some terminology:
  346. # - Primary group: A group setting such that the setting can only be set to
  347. # exactly one group. Most web applications have such a feature. Very few
  348. # permissions systems have such a feature. A given player/user can be a member
  349. # of only one primary group at a time.
  350. # NOTE: If you wish to utilize the primary group synchronization feature and
  351. # your permissions system does not support primary groups, then you must
  352. # list groups you wish to be synchronized into the web applications
  353. # primary group field in the "groups-treated-as-primary" setting (see
  354. # the synchronization options below). The permissions systems that this
  355. # applies to are: bPerms, PermissionsBukkit, PermissionsEx, and Vault.
  356. # - Secondary group(s): A group setting such that the setting can be set to
  357. # multiple groups or none. A given player/user can be a member multiple
  358. # secondary groups at a time in addition to being member of a single
  359. # primary group.
  360.  
  361. # This section describes to Communitybridge how the web application stores
  362. # user group/role information.
  363. app-group-config:
  364. # If the web application has a primary group/role feature, configure it here.
  365. primary:
  366. enabled: true
  367. # The table that contains the primary group ID.
  368. table-name: xf_user
  369.  
  370. # The column on the table that contains the user ID.
  371. user-id-column: user_id
  372.  
  373. # If the primary group is stored in a key-value pair, set this to true.
  374. uses-key: false
  375.  
  376. # The column that the primary group ID is stored in. If uses-key is true,
  377. # this is the column that the "value" of the key-value pair is stored in.
  378. group-id-column: user_group_id
  379.  
  380. # If you set uses-key to true, then set the following three settings:
  381. # Key name for the key-value pair.
  382. key-name:
  383. # Column that the key name is in
  384. key-column:
  385.  
  386. # If the web application has a secondary groups feature, configure it here.
  387. secondary:
  388. enabled: true
  389. # The table that contains the secondary groups.
  390. table-name: xf_user
  391.  
  392. # The column on the table that contains the user ID.
  393. user-id-column: user_id
  394.  
  395. # Storage method. Set to one of the following:
  396. # - single: All the group ids in a single row & column separated by the
  397. # delimiter specified below.
  398. # - key-value: All the group ids are in a single row & column, separated
  399. # by the delimiter specified below, on a table that stores
  400. # its data in key-value pairs
  401. # - multiple-key-value: Group IDs are stored on a table of key-value pairs,
  402. # where the key name can appear in multiple rows.
  403. # - junction: The table can contain multiple rows for a given user_id,
  404. # each with their own group_id.
  405. storage-method: single
  406.  
  407. # The column that the group ID(s) are stored in:
  408. # (For the key-value method, this is the 'value' column)
  409. group-id-column: secondary_group_ids
  410.  
  411. # For single-column or key-value storage methods, the delimiter/separator
  412. # that separates the group IDs:
  413. # (ignored for junction and multiple-key-value storage method)
  414. group-id-delimiter: ','
  415.  
  416. # For the key-value storage method:
  417. # (ignored for the junction and single methods)
  418. # Key name for the key-value pair.
  419. key-name:
  420. # Column that the key name is in
  421. key-column:
  422.  
  423. # This applies to the junction storage method. If there are additional columns on
  424. # the junction table that need to be set to a value different from the table default
  425. # add the column name and value to this list.
  426. additional-columns:
  427. # group_leader: 0
  428. # user_pending: 0
  429.  
  430. # Simple Synchronization Configuration
  431. # NOTE: If you wish to utilize the primary group synchronization feature and
  432. # your permissions system does not support primary groups, then you must
  433. # list groups you wish to be synchronized into the web applications
  434. # primary group field in the "groups-treated-as-primary" setting. The
  435. # permissions systems that this applies to are: bPerms, PermissionsBukkit,
  436. # PermissionsEx, Vault, and zPermissions.
  437. simple-synchronization:
  438. # Set this to true for simple synchronization
  439. enabled: true
  440.  
  441. # Controls the "direction" of synchronization.
  442. # Options are: two-way, web-application, or minecraft.
  443. # - two-way: Changes on either side are synchronized to the other.
  444. # - web-application: Changes made in the web-application are
  445. # synchronized to the Minecraft server.
  446. # - minecraft: Changes made in Minecraft are synchronized to the
  447. # web-application.
  448. direction: two-way
  449.  
  450. # If player hasn't been seen before on server, CommunityBridge will use this
  451. # setting to determine the direction of the synchronization. 'web-application'
  452. # is the only option available at this time.
  453. first-direction: web-application
  454.  
  455. # Set this to true if you want the player to be notified when their primary
  456. # group changes.
  457. primary-group-change-notify: true
  458.  
  459. # This is a safety net. Since CommunityBridge directly modifies group
  460. # membership information, there is a risk that a misconfiguration could
  461. # cause the main administrative account (e.g. super-user) of a webapp to not
  462. # have administrative privileges to the forum, potentially leaving the forum
  463. # in a state where it cannot be administered. To protect against this
  464. # possibility, provide the user-id of the main administrative account of the
  465. # web application here. Generally, this is the account created when the web
  466. # application was installed. For this user-id, group changes will not be
  467. # synchronized from Minecraft to the web application, that is, the
  468. # synchronization for this user will be as if direction was set to
  469. # 'web' (see above). Be absolutely sure this user-id is your super-user
  470. # all-access administrative account.
  471. super-user-user-id: '1'
  472.  
  473. # If you're using primary group synchronization and a permissions system that
  474. # does NOT have the notion of primary groups (bPerms, PermissionsBukkit,
  475. # PermissionsEx, Vault) you must list permission group names that you wish to
  476. # be synchronized into the user's primary group field on the web application
  477. # here. Be sure to include these groups in the group-mapping as well.
  478. # Sample: groups-treated-as-primary: [guest, member, premium]
  479. # note that the brackets are required.
  480. groups-treated-as-primary: [Admin, barbaro, builder, Owner, Bronce, Youtuber]
  481.  
  482. # If you have groups that are secondary groups on the web application that
  483. # you wish to be treated as if they are primary on your permissions system
  484. # (that is, these groups will be mutually exclusive), List them here.
  485. # Sample: groups-treated-as-primary: [guest, member, premium]
  486. # note that the brackets are required.
  487. webapp-secondary-groups-treated-as-primary: [Admin, barbaro, builder, Owner, Bronce, Youtuber]
  488.  
  489. # List groups and group IDs to be synchronized here. On the left side of
  490. # the colon put a web application's group ID. On the right side of the colon
  491. # put the corresponding permissions group name. Only list group IDs and
  492. # group names you wish to be synchronized.
  493.  
  494. # NOTE: Regarding ladders(promotions/inherited groups): Either ALL of the
  495. # groups that are part of a ladder need to have entries on this table
  496. # and have corresponding group on the web application or NONE of them
  497. # should be on this list. It may be that you want to use the
  498. # unregistered/registered group settings instead.
  499. group-mapping:
  500. '11' : 'Admin'
  501. '2' : 'Barbaro'
  502. '12' : 'Builder'
  503. '3' : 'Owner'
  504. '5' : 'Bronce'
  505. '10' : 'Youtuber'
  506.  
  507. ban-synchronization:
  508. enabled: false
  509.  
  510. # Controls the "direction" of synchronization.
  511. # Options are: two-way, web-application, or minecraft.
  512. # - two-way: Changes on either side are synchronized to the other.
  513. # - web-application: Changes made in the web-application are
  514. # synchronized to the Minecraft server.
  515. # - minecraft: Changes made in Minecraft are synchronized to the
  516. # web-application.
  517. direction: two-way
  518.  
  519. # Method options:
  520. # - table: Banned users will be inserted and deleted from a table that is a list of bans
  521. # - user: A column on the users/members table designates whether a user is banned.
  522. # - group: Specify a web-application group whose members are banned. Specify whether
  523. # the group is a primary or secondary group and configure app-group-config
  524. # above as appropiate.
  525. method: table
  526.  
  527. # Group method settings
  528. # Group type is either primary or secondary
  529. group-type:
  530. banned-group:
  531.  
  532. # Name of the table that holds ban information for your web application. Only needed for
  533. # user and table methods.
  534. table-name:
  535.  
  536. # Column that contains the user ID of the banee. Only needed for the user and table methods.
  537. banned-user-id-column:
  538.  
  539. # Settings for the user method. Only needed if method above is set to user
  540. # The value parameters can be strings, numbers, whatever your web application
  541. # uses to indicate the user is banned or not.
  542. ban-column:
  543. value-banned:
  544. value-notbanned:
  545.  
  546. # Settings for table method. Only needed if method above is 'table'. Set
  547. # options that seem relevant to your web application.
  548. # The column containing the reason for the ban. Leave blank if your web
  549. # application does not support this.
  550. ban-reason-column:
  551. # The column containing the ban start time (systime expected). Leave blank
  552. # if your application does not support this.
  553. ban-start-column:
  554. # The column containing the ban end time (systime expected). Leave blank
  555. # if your application does not support this.
  556. ban-end-column:
  557. # The column containing ban-group-id. Leave blank if your web application
  558. # does not support this.
  559. ban-group-id-column:
  560. # The ban-group-id. Leave blank if your web application does not support this.
  561. ban-group-id:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement