Guest User

Untitled

a guest
Jul 28th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
autoconf 23.47 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: config
  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:
  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: localhost
  86.  
  87.   # MySQL Port
  88.   port: 3306
  89.  
  90.   # Database Name
  91.   name: databasename
  92.  
  93.   # Database Username
  94.   username: username
  95.  
  96.   # Database Password
  97.   password: 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:
  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. player-user-linking:
  112.   # Use this to specify which method you are using: uuid, name, or both.
  113.   # uuid - Players are identified by uuid in your web application's database.
  114.   # name - Players are identified by player name in your web application's database.
  115.   # both - Communitybridge will try both ways before giving up.
  116.   linking-method: both
  117.  
  118.   # If you want the player disconnected from the game if they haven't
  119.   # registered, then set this to true. They will be shown the
  120.   # link-unregistered-player message (in message.yml) on the disconnected
  121.   # screen.
  122.   kick-unregistered: false
  123.  
  124.   # This is a timer that will notify unregistered users to register every few
  125.   # minutes.
  126.   auto-remind: true
  127.  
  128.   # The interval for the auto-remind timer, this should be no less than
  129.   # 5-10 minutes. Note that this uses the units specified above in
  130.   # auto-every-unit.
  131.   auto-remind-every: 10
  132.  
  133.   # Set these to true to inform players when they log in if they're linked to
  134.   # the web application. These correspond to the link-unregistered-player and
  135.   # link-registered-player messages in messages.yml.
  136.   notify-registered-player: true
  137.   notify-unregistered-player: true
  138.  
  139.   # If you have a permissions system and you want the player to be placed
  140.   # in a group based on (un)registered status, set the following.
  141.   # If left blank the setting won't be used. If a group-synchronization
  142.   # feature is turned on, the 'registered-player-group' won't be used.
  143.   unregistered-player-group:
  144.   registered-player-group:
  145.   notify-player-of-group: true
  146.  
  147.   # If you want a player to be added to the 'registered-player-group' ONLY if:
  148.   # * they are a member of the unregistered-player-group OR
  149.   # * they have no assigned groups
  150.   # then set this to true.
  151.   registered-former-unregistered-only: true
  152.  
  153.   # If you want a player to be added to the 'unregistered-player-group' if they
  154.   # are no longer registered, set this to true.
  155.   unregister-former-registered: false
  156.  
  157.   # This is where we specify how to associate a Minecraft player with a web
  158.   # application user. We do this by matching up the player name with a name
  159.   # stored in the web application's database.
  160.   #
  161.   # If you want your players to use the same name on both the server and the
  162.   # web application, then you will need to provide the table and column
  163.   # information where the web application relates its user IDs with the user's
  164.   # name/login ID/login/username.
  165.   #
  166.   # If you want to allow them to use a different name on the web application,
  167.   # you need to add a custom field or column to your web application's database
  168.   # for their minecraft name and specify below where the minecraft name is stored
  169.   # in the web application's database.
  170.  
  171.   # The name of the table which contains the columns:
  172.   table-name:
  173.  
  174.   # Column on the table that contains the user ID. Typically, the column will be
  175.   # named something like user_id or member_id and contains a unique number for each
  176.   # user.
  177.   user-id-column:
  178.  
  179.   # If the player name is stored in a key-value pair of columns instead of
  180.   # its own column, set this to true:
  181.   uses-key: false
  182.  
  183.   # If you set 'linking-uses-key' to false, then set this to the column that
  184.   # the minecraft uuid or playername is stored in. Otherwise, leave it empty.
  185.   identifier-column:
  186.  
  187.   # If you set 'linking-uses-key' to true, then set the key column, value
  188.   # column, and the key-name here. Otherwise, leave these fields empty.
  189.   key-name:
  190.   key-column:
  191.   value-column:
  192.  
  193. # Used either for requiring and avatar or rewarding the existence of an avatar.
  194. app-avatar-config:
  195.   enabled: false
  196.   # Table that contains the avatar column
  197.   table-name:
  198.   # Column on the avatar table that contains the user ID.
  199.   user-id-column:
  200.   # Column on the avatar table that contains the avatar information. If this
  201.   # column contains data, the user is assumed by CommunityBridge to have an
  202.   # avatar.
  203.   avatar-column:
  204.  
  205. # Used for post count awards or for requiring a post count.
  206. app-post-count-config:
  207.   enabled: false
  208.   # Table that contains the post count column
  209.   table-name:
  210.   # Column on the avatar table that contains the user ID.
  211.   user-id-column:
  212.   # Column containing the user's post count.
  213.   post-count-column:
  214.  
  215. #                             Requirements
  216. # -----------------------------------------------------------------------------
  217. requirement:
  218.   # Set this to true to require an avatar to be set to access the game.
  219.   # Requires app-avatar-config settings to be enabled and configured correctly.
  220.   avatar: false
  221.   # Require the player to have at least this many posts before being able to
  222.   # play. Requires app-post-count-config settings to be enabled and configured
  223.   # correctly.
  224.   post-count:
  225.     enabled: false
  226.     minimum: 0
  227.  
  228. #                             Statistics Tracking
  229. # -----------------------------------------------------------------------------
  230. # In general, to make this work, your web application will need to support
  231. # custom profile fields or a similar feature. CommunityBridge will put the
  232. # information in the database. It is up to you to configure your web application
  233. # so that it displays the information.
  234. statistics:
  235.   # Enables statistics tracking. Nothing will be tracked unless you also enable
  236.   # at least one of the trackers below.
  237.   enabled: false
  238.   # Name of the table to insert the tracking information on to.
  239.   table-name:
  240.   # Name of the column that contains the player's User ID on the table.
  241.   user-id-column:
  242.   # Set this to true if data on the table is stored in key-value pairs.
  243.   uses-key: false
  244.  
  245.   # If uses-key is true, set these as well. These settings are not used if
  246.   # uses-key is false.
  247.   key-column:
  248.   value-column:
  249.  
  250.   # Some web applications require an insert the first time a custom profile
  251.   # field is filled with data (SMF, for example). If that's the case, enable
  252.   # this and provide the required information.
  253.   insert:
  254.     enabled: false
  255.     # Options are: generic and smf.
  256.     method: generic
  257.  
  258.     # Required for the 'smf' method, ignored for other methods. Most likely id_theme.
  259.     theme-id-column: id_theme
  260.  
  261.     # Required for the 'smf' method, ignored for other methods. Most likely value is 1.
  262.     theme-id: 1
  263.  
  264.   # Individual trackers
  265.   # -------------------
  266.   trackers:
  267.     # Below each tracker can be enabled and configured. For each tracker:
  268.     # * If uses key is true, set column-or-key-name to the key name OR
  269.     #   If uses key is false, set column-or-key-name to the column name
  270.     # For some trackers, there is a formatted version as well. For those
  271.     # trackers, the formatted version is optional. If you wish to use the
  272.     # formatted version, set the formatted-column-or-key-name appropriately.
  273.     # If set, the formatted column will be filled in with a human readable
  274.     # string.
  275.  
  276.     # Online Status: Show a player is playing on the server in the forums.
  277.     online-status:
  278.       enabled: false
  279.       column-or-key-name:
  280.       # Set this to what should be stored in the field when the user is online.
  281.       online-value:
  282.       # Set this to what should be stored in the field when the user is offline.
  283.       offline-value:
  284.  
  285.     # Last Online: Record the time that player was last online
  286.     last-online:
  287.       enabled: false
  288.       # Numeric column, should be able to store a 32 bit integer. Will be seconds since epoch.
  289.       column-or-key-name:
  290.       # String (varchar, etc.) column at least 60 characters in length.
  291.       formatted-column-or-key-name:
  292.  
  293.     # Game Time: Record how much time the player has played.
  294.     # Requires the last-online tracker to be turned on as well.
  295.     game-time:
  296.       enabled: false
  297.       # Numeric column, should be able to store a 32 bit integer. Time played in seconds.
  298.       column-or-key-name:
  299.       formatted-column-or-key-name:
  300.  
  301.     # Player's current level
  302.     level:
  303.       enabled: false
  304.       # Numeric column, a single byte will be sufficient in most cases.
  305.       column-or-key-name:
  306.  
  307.     # Player's current progress toward next level
  308.     current-xp:
  309.       enabled: false
  310.       # Numeric floating point column.
  311.       column-or-key-name:
  312.       # String column with at least 4 characters capacity.
  313.       formatted-column-or-key-name:
  314.  
  315.     # Player's XP total
  316.     total-xp:
  317.       enabled: false
  318.       # Numeric column, capable of storing a 32 bit integer.
  319.       column-or-key-name:
  320.  
  321.     # Player's current health
  322.     health:
  323.       enabled: false
  324.       # Numeric column, a single byte should be sufficient.
  325.       column-or-key-name:
  326.  
  327.     # Lifeticks; the amount of time the player has been alive.
  328.     lifeticks:
  329.       enabled: false
  330.       # Numeric column, capable of storing a 32 bit integer.
  331.       column-or-key-name:
  332.       # String field with at least 100 characters of storage.
  333.       formatted-column-or-key-name:
  334.  
  335.     # Wallet. The amount of money the player currently has. REQUIRES VAULT.
  336.     wallet:
  337.       enabled: false
  338.       # Numeric column capable of storing a "double" floating point number.
  339.       column-or-key-name:
  340.  
  341. #                     Web Application Group Configuration
  342. # -----------------------------------------------------------------------------
  343. #
  344. # Some terminology:
  345. # - Primary group: A group setting such that the setting can only be set to
  346. #   exactly one group. Most web applications have such a feature. Very few
  347. #   permissions systems have such a feature. A given player/user can be a member
  348. #   of only one primary group at a time.
  349. #   NOTE: If you wish to utilize the primary group synchronization feature and
  350. #         your permissions system does not support primary groups, then you must
  351. #         list groups you wish to be synchronized into the web applications
  352. #         primary group field in the "groups-treated-as-primary" setting (see
  353. #         the synchronization options below). The permissions systems that this
  354. #         applies to are: bPerms, PermissionsBukkit, PermissionsEx, and Vault.
  355. # - Secondary group(s): A group setting such that the setting can be set to
  356. #   multiple groups or none. A given player/user can be a member multiple
  357. #   secondary groups at a time in addition to being member of a single
  358. #   primary group.
  359.  
  360. # This section describes to Communitybridge how the web application stores
  361. # user group/role information.
  362. app-group-config:
  363.   # If the web application has a primary group/role feature, configure it here.
  364.   primary:
  365.     enabled: false
  366.     # The table that contains the primary group ID.
  367.     table-name:
  368.  
  369.     # The column on the table that contains the user ID.
  370.     user-id-column:
  371.  
  372.     # If the primary group is stored in a key-value pair, set this to true.
  373.     uses-key: false
  374.  
  375.     # The column that the primary group ID is stored in. If uses-key is true,
  376.     # this is the column that the "value" of the key-value pair is stored in.
  377.     group-id-column:
  378.  
  379.     # If you set uses-key to true, then set the following three settings:
  380.     # Key name for the key-value pair.
  381.     key-name:
  382.     # Column that the key name is in
  383.     key-column:
  384.  
  385.   # If the web application has a secondary groups feature, configure it here.
  386.   secondary:
  387.     enabled: false
  388.     # The table that contains the secondary groups.
  389.     table-name:
  390.  
  391.     # The column on the table that contains the user ID.
  392.     user-id-column:
  393.  
  394.     # Storage method. Set to one of the following:
  395.     # - single: All the group ids in a single row & column separated by the
  396.     #           delimiter specified below.
  397.     # - key-value: All the group ids are in a single row & column, separated
  398.     #              by the delimiter specified below, on a table that stores
  399.     #              its data in key-value pairs
  400.     # - multiple-key-value: Group IDs are stored on a table of key-value pairs,
  401.     #                    where the key name can appear in multiple rows.
  402.     # - junction: The table can contain multiple rows for a given user_id,
  403.     #             each with their own group_id.
  404.     storage-method: single
  405.  
  406.     # The column that the group ID(s) are stored in:
  407.     # (For the key-value method, this is the 'value' column)
  408.     group-id-column:
  409.  
  410.     # For single-column or key-value storage methods, the delimiter/separator
  411.     # that separates the group IDs:
  412.     # (ignored for junction and multiple-key-value storage method)
  413.     group-id-delimiter: ','
  414.  
  415.     # For the key-value storage method:
  416.     # (ignored for the junction and single methods)
  417.     # Key name for the key-value pair.
  418.     key-name:
  419.     # Column that the key name is in
  420.     key-column:
  421.  
  422.     # This applies to the junction storage method. If there are additional columns on
  423.     # the junction table that need to be set to a value different from the table default
  424.     # add the column name and value to this list.
  425.     additional-columns:
  426.       # group_leader: 0
  427.       # user_pending: 0
  428.  
  429. # Simple Synchronization Configuration
  430. # NOTE: If you wish to utilize the primary group synchronization feature and
  431. #       your permissions system does not support primary groups, then you must
  432. #       list groups you wish to be synchronized into the web applications
  433. #       primary group field in the "groups-treated-as-primary" setting. The
  434. #       permissions systems that this applies to are: bPerms, PermissionsBukkit,
  435. #       PermissionsEx, Vault, and zPermissions.
  436. simple-synchronization:
  437.   # Set this to true for simple synchronization
  438.   enabled: false
  439.  
  440.   # Controls the "direction" of synchronization.
  441.   # Options are: two-way, web-application, or minecraft.
  442.   # - two-way: Changes on either side are synchronized to the other.
  443.   # - web-application: Changes made in the web-application are
  444.   #   synchronized to the Minecraft server.
  445.   # - minecraft: Changes made in Minecraft are synchronized to the
  446.   #   web-application.
  447.   direction: two-way
  448.  
  449.   # If player hasn't been seen before on server, CommunityBridge will use this
  450.   # setting to determine the direction of the synchronization. 'web-application'
  451.   # is the only option available at this time.
  452.   first-direction: web-application
  453.  
  454.   # Set this to true if you want the player to be notified when their primary
  455.   # group changes.
  456.   primary-group-change-notify: false
  457.  
  458.   # This is a safety net. Since CommunityBridge directly modifies group
  459.   # membership information, there is a risk that a misconfiguration could
  460.   # cause the main administrative account (e.g. super-user) of a webapp to not
  461.   # have administrative privileges to the forum, potentially leaving the forum
  462.   # in a state where it cannot be administered. To protect against this
  463.   # possibility, provide the user-id of the main administrative account of the
  464.   # web application here. Generally, this is the account created when the web
  465.   # application was installed. For this user-id, group changes will not be
  466.   # synchronized from Minecraft to the web application, that is, the
  467.   # synchronization for this user will be as if direction was set to
  468.   # 'web' (see above). Be absolutely sure this user-id is your super-user
  469.   # all-access administrative account.
  470.   super-user-user-id: ''
  471.  
  472.   # If you're using primary group synchronization and a permissions system that
  473.   # does NOT have the notion of primary groups (bPerms, PermissionsBukkit,
  474.   # PermissionsEx, Vault) you must list permission group names that you wish to
  475.   # be synchronized into the user's primary group field on the web application
  476.   # here. Be sure to include these groups in the group-mapping as well.
  477.   # Sample: groups-treated-as-primary: [guest, member, premium]
  478.   #         note that the brackets are required.
  479.   groups-treated-as-primary: []
  480.  
  481.   # If you have groups that are secondary groups on the web application that
  482.   # you wish to be treated as if they are primary on your permissions system
  483.   # (that is, these groups will be mutually exclusive), List them here.
  484.   # Sample: groups-treated-as-primary: [guest, member, premium]
  485.   #         note that the brackets are required.
  486.   webapp-secondary-groups-treated-as-primary: []
  487.  
  488.   # List groups and group IDs to be synchronized here. On the left side of
  489.   # the colon put a web application's group ID. On the right side of the colon
  490.   # put the corresponding permissions group name. Only list group IDs and
  491.   # group names you wish to be synchronized.
  492.  
  493.   # NOTE: Regarding ladders(promotions/inherited groups): Either ALL of the
  494.   #       groups that are part of a ladder need to have entries on this table
  495.   #       and have corresponding group on the web application or NONE of them
  496.   #       should be on this list. It may be that you want to use the
  497.   #       unregistered/registered group settings instead.
  498.   group-mapping:
  499.     '1' : 'guest'
  500.     '2' : 'member'
  501.     '3' : 'premium'
  502.  
  503. ban-synchronization:
  504.   enabled: false
  505.  
  506.   # Controls the "direction" of synchronization.
  507.   # Options are: two-way, web-application, or minecraft.
  508.   # - two-way: Changes on either side are synchronized to the other.
  509.   # - web-application: Changes made in the web-application are
  510.   #   synchronized to the Minecraft server.
  511.   # - minecraft: Changes made in Minecraft are synchronized to the
  512.   #   web-application.
  513.   direction: two-way
  514.  
  515.   # Method options:
  516.   # - table: Banned users will be inserted and deleted from a table that is a list of bans
  517.   # - user: A column on the users/members table designates whether a user is banned.
  518.   # - group: Specify a web-application group whose members are banned. Specify whether
  519.   #          the group is a primary or secondary group and configure app-group-config
  520.   #          above as appropiate.
  521.   method: table
  522.  
  523.   # Group method settings
  524.   # Group type is either primary or secondary
  525.   group-type:
  526.   banned-group:
  527.  
  528.   # Name of the table that holds ban information for your web application. Only needed for
  529.   # user and table methods.
  530.   table-name:
  531.  
  532.   # Column that contains the user ID of the banee. Only needed for the user and table methods.
  533.   banned-user-id-column:
  534.  
  535.   # Settings for the user method. Only needed if method above is set to user
  536.   # The value parameters can be strings, numbers, whatever your web application
  537.   # uses to indicate the user is banned or not.
  538.   ban-column:
  539.   value-banned:
  540.   value-notbanned:
  541.  
  542.   # Settings for table method. Only needed if method above is 'table'. Set
  543.   # options that seem relevant to your web application.
  544.   # The column containing the reason for the ban. Leave blank if your web
  545.   # application does not support this.
  546.   ban-reason-column:
  547.   # The column containing the ban start time (systime expected). Leave blank
  548.   # if your application does not support this.
  549.   ban-start-column:
  550.   # The column containing the ban end time (systime expected). Leave blank
  551.   # if your application does not support this.
  552.   ban-end-column:
  553.   # The column containing ban-group-id. Leave blank if your web application
  554.   # does not support this.
  555.   ban-group-id-column:
  556.   # The ban-group-id. Leave blank if your web application does not support this.
  557.   ban-group-id:
Add Comment
Please, Sign In to add comment