Advertisement
Guest User

Untitled

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