Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ------------------------------ #
- #
- # ConditionPerms 2
- # (c) Maxim Van de Wynckel
- #
- # ------------------------------ #
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- # GENERAL PLUGIN SETTINGS
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- ## Config version (DO NOT EDIT)
- config: 2
- ## Language file
- lang: 'en'
- ## Debug mode
- debug: false
- ## Log to file
- log:
- enabled: true
- # Reset log on startup
- reset: true
- ## Update checking
- update:
- check: true # RECOMMENDED YOU LEAVE THIS TRUE
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- # PLUGIN SPECIFIC SETTINGS
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- # Placeholder settings
- placeholder:
- # Force install all placeholders (NOT RECOMMENDED)
- force-all: false
- # logs the memory usage of placeholders on startup
- log-memory: false
- # Clear unused placeholders that are not enabled.
- clear-unused: true
- # Config cache only
- # This will only use placeholders in the config
- # HOWEVER: IT WILL BREAK ALL CUSTOM PLACEHOLDERS!
- # IT WILL ALSO PREVENT ANY HOOKS (PlaceholderAPI)
- config-cache: false
- # Condition engine
- # This is the engine that will be used to evaluate the conditions
- # Only edit when you know what you are doing!
- engine: 'javascript'
- # Configure the database. This database is used to keep track
- # of the players that have been granted the condition permissions
- # already.
- #
- # Default it is set up for SQLite. MySQL support
- #
- # NOTE: The databases are not convertible between types
- database:
- # Database configuration is SIMILAR to http://wiki.bukkit.org/Bukkit.yml#database
- # with isolation, url, driver, ...
- # Database name
- database: "conditionperms"
- # Database username
- username: bukkit
- # Database password
- password: walrus
- # Database driver URL
- # {DIR} will be replaced with the plugin directory
- # {NAME} will be replaced wit the plugin name
- url: jdbc:sqlite:{DIR}{NAME}.db
- # Save interval in ticks
- save-interval: 6000
- # A list of all conditions you configured
- # You can add your own conditions yourself
- # For more detailed info see the plugin page
- conditions:
- health-example: # This is a random name given to a condition
- condition: '{health} < 10' # Here you define the statement of the condition
- checkinterval: 60 # This is the interval in ticks the condition is checked
- revoke: true # If set to true conditions will be revoked when no longer met
- cooldown: 0 # This is the check cooldown (in ticks) after the check is true. A use could be:
- # for example you want to check if a player is in an area (fast)
- # and you want to send a message every X ticks.
- allplayers: false # Check the condition on all players (performance drop)
- commands-on-grant: # Execute all commands below this when the condition is met
- - 'say {player} has low health! Help him!!'
- commands-on-revoke: # Execute all commands on revoke (revoke needs to be true)
- - 'say {player} is back OK!'
- permissions: # Grant and/or revoke following permissions
- - ''
- permission-world: '' # The world used to add permissions to, leave empty for player location
- bed-location-example:
- condition: '(Math.abs({x} - {bed_x}) < 10) && (Math.abs({y} - {bed_y}) < 10) && (Math.abs({z} - {bed_z}) < 10)'
- checkinterval: 20
- revoke: true
- allplayers: false
- commands-on-grant:
- - 'console:say {player} you are close to your bed!'
- commands-on-revoke:
- - 'console:say {player} no no! wrong way!'
- permissions: []
- permission-world: ''
- specific-player-example:
- condition: '"{player}" == "Maximvdw"'
- checkinterval: 60
- revoke: false
- allplayers: false
- commands-on-grant:
- - 'console:say You are Maximvdw!'
- test: # This is a random name given to a condition
- condition: '{stat_blocksmined} > 15470' # Here you define the statement of the condition
- checkinterval: 120 # This is the interval in ticks the condition is checked
- revoke: false # If set to true conditions will be revoked when no longer met
- allplayers: false # Check the condition on all players (performance drop)
- commands-on-grant: # Execute all commands below this when the condition is met
- - 'console:lp user {player} permission set test.permission true'
- - 'console:cmi msg {player} you mined a lot of blocks'
- test2: # This is a random name given to a condition
- condition: '{stat_blocksmined} > 100' # Here you define the statement of the condition
- checkinterval: 60 # This is the interval in ticks the condition is checked
- revoke: false # If set to true conditions will be revoked when no longer met
- allplayers: false # Check the condition on all players (performance drop)
- commands-on-grant: # Execute all commands below this when the condition is met
- - 'console:lp user {player} permission set test.permission2 true'
- - 'console:cmi msg {player} you mined some blocks'
- commands-on-revoke: # Execute all commands on revoke (revoke needs to be true)
- - 'console:say {player} is no longer flying :)'
- test3: # This is a random name given to a condition
- condition: '{stat_blocksmined} > 15670' # Here you define the statement of the condition
- checkinterval: 120 # This is the interval in ticks the condition is checked
- revoke: false # If set to true conditions will be revoked when no longer met
- allplayers: false # Check the condition on all players (performance drop)
- commands-on-grant: # Execute all commands below this when the condition is met
- - 'console:lp user {player} permission set test.permission true'
- - 'console:cmi msg {player} you mined a lot of blocks'
- permission: 'test3'
- test4: # This is a random name given to a condition
- condition: '{stat_blocksmined} > 15710' # Here you define the statement of the condition
- checkinterval: 120 # This is the interval in ticks the condition is checked
- revoke: false # If set to true conditions will be revoked when no longer met
- allplayers: false # Check the condition on all players (performance drop)
- commands-on-grant: # Execute all commands below this when the condition is met
- - 'console:lp user {player} permission set test.permission true'
- - 'console:cmi msg {player} you mined a lot of blocks'
- permission: 'test4'
- test5: # This is a random name given to a condition
- condition: '{stat_fishcaught} > 5' # Here you define the statement of the condition
- checkinterval: 120 # This is the interval in ticks the condition is checked
- revoke: false # If set to true conditions will be revoked when no longer met
- allplayers: false # Check the condition on all players (performance drop)
- commands-on-grant: # Execute all commands below this when the condition is met
- - 'console:lp user {player} permission set test.permission true'
- - 'console:cmi msg {player} smelling fishy'
- permission: 'test5'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement