SHARE
TWEET

ConditionPerms_CONFIG

a guest Jan 28th, 2016 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ------------------------------ #
  2. #
  3. #  ConditionPerms
  4. #  (c) Maxim Van de Wynckel
  5. #
  6. # ------------------------------ #
  7.  
  8. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  9. # GENERAL PLUGIN SETTINGS
  10. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  11.  
  12. ## Config version (DO NOT EDIT)
  13. config: 1
  14.  
  15. ## Language file
  16. lang: 'en'
  17.  
  18. ## Debug mode
  19. debug: false
  20.  
  21. ## Log to file
  22. log:
  23.   enabled: true
  24.   # Reset log on startup
  25.   reset: false
  26.  
  27. ## Update checking
  28. update:
  29.   check: true # RECOMMENDED YOU LEAVE THIS TRUE
  30.  
  31. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  32. # PLUGIN SPECIFIC SETTINGS
  33. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  34.  
  35. # Placeholder settings
  36. placeholder:
  37.   # logs the memory usage of placeholders on startup
  38.   log-memory: false
  39.   # Clear unused placeholders that are not enabled.
  40.   clear-unused: true
  41.  
  42.  
  43. # Condition engine
  44. # This is the engine that will be used to evaluate the conditions
  45. # Only edit when you know what you are doing!
  46. engine: 'javascript'
  47.  
  48.  
  49. # Configure the database. This database is used to keep track
  50. # of the players that have been granted the condition permissions
  51. # already.
  52. #
  53. # Default it is set up for SQLite. MySQL support
  54. # is possible but for this use case not recommended.
  55. #
  56. # NOTE: The databases are not convertible
  57. database:
  58.   # Database name
  59.   database: "conditionperms"
  60.   # Database username
  61.   username: bukkit
  62.   # Database isolation type
  63.   isolation: SERIALIZABLE
  64.   # Database driver
  65.   driver: org.sqlite.JDBC
  66.   # Database password
  67.   password: walrus
  68.   # Database driver URL
  69.   # {DIR} will be replaced with the plugin directory
  70.   # {NAME} will be replaced wit the plugin name
  71.   url: jdbc:sqlite:{DIR}{NAME}.db
  72.  
  73. # A list of all conditions you configured
  74. # You can add your own conditions yourself
  75. # For more detailed info see the plugin page
  76. conditions:
  77.   health-example: # This is a random name given to a condition
  78.     condition: '{health} < 10' # Here you define the statement of the condition
  79.     checkinterval: 60 # This is the interval in ticks the condition is checked
  80.     revoke: true # If set to true conditions will be revoked when no longer met
  81.     cooldown: 0 # This is the check cooldown (in ticks) after the check is true. A use could be:
  82.                 # for example you want to check if a player is in an area (fast)
  83.                 # and you want to send a message every X ticks.
  84.     allplayers: false # Check the condition on all players (performance drop)
  85.     commands-on-grant: # Execute all commands below this when the condition is met
  86.     - 'say {player} has low health! Help him!!'
  87.     commands-on-revoke: # Execute all commands on revoke (revoke needs to be true)
  88.     - 'say {player} is back OK!'
  89.     permissions: # Grant and/or revoke following permissions
  90.     - ''
  91.     permission-world: '' # The world used to add permissions to, leave empty for player location
  92.   fly-example: # This is a random name given to a condition
  93.     condition: '{isflying}' # Here you define the statement of the condition
  94.     checkinterval: 10 # This is the interval in ticks the condition is checked
  95.     revoke: true # If set to true conditions will be revoked when no longer met
  96.     allplayers: false # Check the condition on all players (performance drop)
  97.     commands-on-grant: # Execute all commands below this when the condition is met
  98.     - 'console:say {player} is flying ...'
  99.     commands-on-revoke: # Execute all commands on revoke (revoke needs to be true)
  100.     - 'console:say {player} is no longer flying :)'
  101.     permissions: # Grant and/or revoke following permissions
  102.     - ''
  103.     permission-world: '' # The world used to add permissions to, leave empty for player location
  104.   # The example below is a bit more tricky. It uses the Math lib. to check if a player is in a 10 block range of his bed
  105.   bed-location-example:
  106.     condition: '(Math.abs({x} - {bed_x}) < 10) && (Math.abs({y} - {bed_y}) < 10) && (Math.abs({z} - {bed_z}) < 10)'
  107.     checkinterval: 20
  108.     revoke: true
  109.     allplayers: false
  110.     commands-on-grant:
  111.     - 'console:say {player} you are close to your bed!'
  112.     commands-on-revoke:
  113.     - 'console:say {player} no no! wrong way!'
  114.     permissions: []
  115.     permission-world: ''  
  116.   Menu1:
  117.     condition: '"{worldguard_region_id}" == "Menu"'
  118.     checkinterval: 5
  119.     revoke: true
  120.     allplayers: false
  121.     commands-on-grant:
  122.     - 'dm open {player} menu'
  123.     commands-on-revoke:
  124.     - 'spawn {player}'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top