Advertisement
Guest User

Config

a guest
Jun 21st, 2016
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.49 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: all
  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: 20
  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: www.copeworld.eu
  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: copeworld.eu
  86.  
  87. # MySQL Port
  88. port: 3306
  89.  
  90. # Database Name
  91. name:
  92.  
  93. # Database Username
  94. username:
  95.  
  96. # Database Password
  97. password:
  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: minecraft
  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: both
  131.  
  132. # The name of the table which contains the columns:
  133. table-name: pfields_content
  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_id
  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: field_12
  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:
  180. registered-player-group:
  181. notify-player-of-group: false
  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: true
  219. # The table that contains the primary group ID.
  220. table-name: members
  221.  
  222. # The column on the table that contains the user ID.
  223. user-id-column: member_id
  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: member_group_id
  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: true
  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: true
  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: '4'
  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: [unregistered, Newbie, Member, Stamm, RPG, Supporter, Owner]
  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' : 'unregistered'
  353. '3' : 'Newbie'
  354. '7' : 'Member'
  355. '8' : 'Stamm'
  356. '9' : 'RPG'
  357. '10' : 'Supporter'
  358. '6' : 'Owner'
  359. '4' : 'Owner'
  360.  
  361. # Other Miscellaneous Database Configurations
  362. # -----------------------------------------------------------------------------
  363. # Used either for requiring and avatar or rewarding the existence of an avatar.
  364. app-avatar-config:
  365. enabled: false
  366. # Table that contains the avatar column
  367. table-name:
  368. # Column on the avatar table that contains the user ID.
  369. user-id-column:
  370. # Column on the avatar table that contains the avatar information. If this
  371. # column contains data, the user is assumed by CommunityBridge to have an
  372. # avatar.
  373. avatar-column:
  374.  
  375. # Used for post count awards or for requiring a post count.
  376. app-post-count-config:
  377. enabled: false
  378. # Table that contains the post count column
  379. table-name:
  380. # Column on the avatar table that contains the user ID.
  381. user-id-column:
  382. # Column containing the user's post count.
  383. post-count-column:
  384.  
  385. # Used for synchronizing cash. Requires Vault.
  386. app-wallet-config:
  387. enabled: false
  388. # Table that contains the user's money score
  389. table-name:
  390. # Column on the table that contains the user ID.
  391. user-id-column:
  392. # Column or key containing the user's money score should be able to store a double
  393. column-or-key-name:
  394. # If stored in a key-value pair, set this to true.
  395. uses-key: false
  396. # If uses-key is true, set these as well. These settings are not used if
  397. # uses-key is false.
  398. key-column:
  399. value-column:
  400.  
  401. # Statistics Tracking
  402. # -----------------------------------------------------------------------------
  403. # In general, to make this work, your web application will need to support
  404. # custom profile fields or a similar feature. CommunityBridge will put the
  405. # information in the database. It is up to you to configure your web application
  406. # so that it displays the information.
  407. statistics:
  408. # Enables statistics tracking. Nothing will be tracked unless you also enable
  409. # at least one of the trackers below.
  410. enabled: false
  411. # Name of the table to insert the tracking information on to.
  412. table-name:
  413. # Name of the column that contains the player's User ID on the table.
  414. user-id-column:
  415. # Set this to true if data on the table is stored in key-value pairs.
  416. uses-key: false
  417.  
  418. # If uses-key is true, set these as well. These settings are not used if
  419. # uses-key is false.
  420. key-column:
  421. value-column:
  422.  
  423. # Some web applications require an insert the first time a custom profile
  424. # field is filled with data (SMF, for example). If that's the case, enable
  425. # this and provide the required information.
  426. insert:
  427. enabled: false
  428. # Options are: generic and smf.
  429. method: generic
  430.  
  431. # Required for the 'smf' method, ignored for other methods. Most likely id_theme.
  432. theme-id-column: id_theme
  433.  
  434. # Required for the 'smf' method, ignored for other methods. Most likely value is 1.
  435. theme-id: 1
  436.  
  437. # Individual trackers
  438. # -------------------
  439. trackers:
  440. # Below each tracker can be enabled and configured. For each tracker:
  441. # * If uses key is true, set column-or-key-name to the key name OR
  442. # If uses key is false, set column-or-key-name to the column name
  443. # For some trackers, there is a formatted version as well. For those
  444. # trackers, the formatted version is optional. If you wish to use the
  445. # formatted version, set the formatted-column-or-key-name appropriately.
  446. # If set, the formatted column will be filled in with a human readable
  447. # string.
  448.  
  449. # Online Status: Show a player is playing on the server in the forums.
  450. online-status:
  451. enabled: false
  452. column-or-key-name:
  453. # Set this to what should be stored in the field when the user is online.
  454. online-value:
  455. # Set this to what should be stored in the field when the user is offline.
  456. offline-value:
  457.  
  458. # Last Online: Record the time that player was last online
  459. last-online:
  460. enabled: false
  461. # Numeric column, should be able to store a 32 bit integer. Will be seconds since epoch.
  462. column-or-key-name:
  463. # String (varchar, etc.) column at least 60 characters in length.
  464. formatted-column-or-key-name:
  465.  
  466. # Game Time: Record how much time the player has played.
  467. # Requires the last-online tracker to be turned on as well.
  468. game-time:
  469. enabled: false
  470. # Numeric column, should be able to store a 32 bit integer. Time played in seconds.
  471. column-or-key-name:
  472. formatted-column-or-key-name:
  473.  
  474. # Player's current level
  475. level:
  476. enabled: false
  477. # Numeric column, a single byte will be sufficient in most cases.
  478. column-or-key-name:
  479.  
  480. # Player's current progress toward next level
  481. current-xp:
  482. enabled: false
  483. # Numeric floating point column.
  484. column-or-key-name:
  485. # String column with at least 4 characters capacity.
  486. formatted-column-or-key-name:
  487.  
  488. # Player's XP total
  489. total-xp:
  490. enabled: false
  491. # Numeric column, capable of storing a 32 bit integer.
  492. column-or-key-name:
  493.  
  494. # Player's current health
  495. health:
  496. enabled: false
  497. # Numeric column, a single byte should be sufficient.
  498. column-or-key-name:
  499.  
  500. # Lifeticks; the amount of time the player has been alive.
  501. lifeticks:
  502. enabled: false
  503. # Numeric column, capable of storing a 32 bit integer.
  504. column-or-key-name:
  505. # String field with at least 100 characters of storage.
  506. formatted-column-or-key-name:
  507.  
  508. # Wallet. The amount of money the player currently has. REQUIRES VAULT.
  509. wallet:
  510. enabled: false
  511. # Configuration for wallet is in the app-wallet-config section.
  512.  
  513. # Ban Synchronization
  514. # -----------------------------------------------------------------------------
  515. ban-synchronization:
  516. enabled: false
  517.  
  518. # Controls the "direction" of synchronization.
  519. # Options are: two-way, web-application, or minecraft.
  520. # - two-way: Changes on either side are synchronized to the other.
  521. # - web-application: Changes made in the web-application are
  522. # synchronized to the Minecraft server.
  523. # - minecraft: Changes made in Minecraft are synchronized to the
  524. # web-application.
  525. direction: two-way
  526.  
  527. # Method options:
  528. # - table: Banned users will be inserted and deleted from a table that is a list of bans
  529. # - user: A column on the users/members table designates whether a user is banned.
  530. # - group: Specify a web-application group whose members are banned. Specify whether
  531. # the group is a primary or secondary group and configure app-group-config
  532. # above as appropiate.
  533. method: group
  534.  
  535. # Group method settings
  536. # Group type is either primary or secondary
  537. group-type:
  538. banned-group:
  539.  
  540. # Name of the table that holds ban information for your web application. Only needed for
  541. # user and table methods.
  542. table-name:
  543.  
  544. # Column that contains the user ID of the banee. Only needed for the user and table methods.
  545. banned-user-id-column:
  546.  
  547. # Settings for the user method. Only needed if method above is set to user
  548. # The value parameters can be strings, numbers, whatever your web application
  549. # uses to indicate the user is banned or not.
  550. ban-column:
  551. value-banned:
  552. value-notbanned:
  553.  
  554. # Settings for table method. Only needed if method above is 'table'. Set
  555. # options that seem relevant to your web application.
  556. # The column containing the reason for the ban. Leave blank if your web
  557. # application does not support this.
  558. ban-reason-column:
  559. # The column containing the ban start time (systime expected). Leave blank
  560. # if your application does not support this.
  561. ban-start-column:
  562. # The column containing the ban end time (systime expected). Leave blank
  563. # if your application does not support this.
  564. ban-end-column:
  565. # The column containing ban-group-id. Leave blank if your web application
  566. # does not support this.
  567. ban-group-id-column:
  568. # The ban-group-id. Leave blank if your web application does not support this.
  569. ban-group-id:
  570.  
  571. # Requirements
  572. # -----------------------------------------------------------------------------
  573. requirement:
  574. # Set this to true to require an avatar to be set to access the game.
  575. # Requires app-avatar-config settings to be enabled and configured correctly.
  576. avatar: false
  577. # Require the player to have at least this many posts before being able to
  578. # play. Requires app-post-count-config settings to be enabled and configured
  579. # correctly.
  580. post-count:
  581. enabled: false
  582. minimum: 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement