Skip to content

Instantly share code, notes, and snippets.

@iain-davis
Created December 8, 2013 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iain-davis/7863650 to your computer and use it in GitHub Desktop.
Save iain-davis/7863650 to your computer and use it in GitHub Desktop.
New configuration for requirements (and rewards). This goes in the CommunityBridge config.yml, replacing the older requirements section.
# Used either for requiring and avatar or rewarding the existence of an avatar.
app-avatar-config:
enabled: false
# Table that contains the avatar column
table-name:
# Column on the avatar table that contains the user ID.
user-id-column:
# Column on the avatar table that contains the avatar information. If this
# column contains data, the user is assumed by CommunityBridge to have an
# avatar.
avatar-column:
# Used for post count awards or for requiring a post count.
app-post-count-config:
enabled: false
# Table that contains the avatar column
table-name:
# Column on the avatar table that contains the user ID.
user-id-column:
# Column containing the user's post count.
post-count-column:
# Requirements
# -----------------------------------------------------------------------------
requirement:
# Set this to true to require an avatar to be set to access the game.
# Requires app-avatar-config settings to be enabled and configured correctly.
avatar: false
# Require the player to have at least this many posts before being able to
# play. Requires app-post-count-config settings to be enabled and configured
# correctly.
post-count:
enabled: false
minimum: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment