Advertisement
Guest User

ConditionPerms_CONFIG

a guest
Apr 4th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  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: true
  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. # Config cache only
  42. # This will only use placeholders in the config
  43. # HOWEVER: IT WILL BREAK ALL CUSTOM PLACEHOLDERS!
  44. # IT WILL ALSO PREVENT ANY HOOKS (PlaceholderAPI)
  45. config-cache: false
  46.  
  47.  
  48. # Condition engine
  49. # This is the engine that will be used to evaluate the conditions
  50. # Only edit when you know what you are doing!
  51. engine: 'javascript'
  52.  
  53.  
  54. # Configure the database. This database is used to keep track
  55. # of the players that have been granted the condition permissions
  56. # already.
  57. #
  58. # Default it is set up for SQLite. MySQL support
  59. # is possible but for this use case not recommended.
  60. #
  61. # NOTE: The databases are not convertible
  62. database:
  63. # Database name
  64. database: "conditionperms"
  65. # Database username
  66. username: bukkit
  67. # Database isolation type
  68. isolation: SERIALIZABLE
  69. # Database driver
  70. driver: org.sqlite.JDBC
  71. # Database password
  72. password: walrus
  73. # Database driver URL
  74. # {DIR} will be replaced with the plugin directory
  75. # {NAME} will be replaced wit the plugin name
  76. url: jdbc:sqlite:{DIR}{NAME}.db
  77.  
  78. # A list of all conditions you configured
  79. # You can add your own conditions yourself
  80. # For more detailed info see the plugin page
  81. conditions:
  82. health-example: # This is a random name given to a condition
  83. condition: '{health} < 10' # Here you define the statement of the condition
  84. checkinterval: 60 # This is the interval in ticks the condition is checked
  85. revoke: true # If set to true conditions will be revoked when no longer met
  86. cooldown: 0 # This is the check cooldown (in ticks) after the check is true. A use could be:
  87. # for example you want to check if a player is in an area (fast)
  88. # and you want to send a message every X ticks.
  89. allplayers: false # Check the condition on all players (performance drop)
  90. commands-on-grant: # Execute all commands below this when the condition is met
  91. - 'say {player} has low health! Help him!!'
  92. commands-on-revoke: # Execute all commands on revoke (revoke needs to be true)
  93. - 'say {player} is back OK!'
  94. permissions: # Grant and/or revoke following permissions
  95. - ''
  96. permission-world: '' # The world used to add permissions to, leave empty for player location
  97. fly-example: # This is a random name given to a condition
  98. condition: '{isflying}' # Here you define the statement of the condition
  99. checkinterval: 10 # This is the interval in ticks the condition is checked
  100. revoke: true # If set to true conditions will be revoked when no longer met
  101. allplayers: false # Check the condition on all players (performance drop)
  102. commands-on-grant: # Execute all commands below this when the condition is met
  103. - 'console:say {player} is flying ...'
  104. commands-on-revoke: # Execute all commands on revoke (revoke needs to be true)
  105. - 'console:say {player} is no longer flying :)'
  106. permissions: # Grant and/or revoke following permissions
  107. - ''
  108. permission-world: '' # The world used to add permissions to, leave empty for player location
  109. # 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
  110. bed-location-example:
  111. condition: '(Math.abs({x} - {bed_x}) < 10) && (Math.abs({y} - {bed_y}) < 10) && (Math.abs({z} - {bed_z}) < 10)'
  112. checkinterval: 20
  113. revoke: true
  114. allplayers: false
  115. commands-on-grant:
  116. - 'console:say {player} you are close to your bed!'
  117. commands-on-revoke:
  118. - 'console:say {player} no no! wrong way!'
  119. permissions: []
  120. permission-world: ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement