Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.87 KB | None | 0 0
  1. # ------------------------------ #
  2. #
  3. # ConditionPerms 2
  4. # (c) Maxim Van de Wynckel
  5. #
  6. # ------------------------------ #
  7.  
  8. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  9. # GENERAL PLUGIN SETTINGS
  10. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  11.  
  12. ## Config version (DO NOT EDIT)
  13. config: 2
  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. # Force install all placeholders (NOT RECOMMENDED)
  38. force-all: false
  39. # logs the memory usage of placeholders on startup
  40. log-memory: false
  41. # Clear unused placeholders that are not enabled.
  42. clear-unused: true
  43. # Config cache only
  44. # This will only use placeholders in the config
  45. # HOWEVER: IT WILL BREAK ALL CUSTOM PLACEHOLDERS!
  46. # IT WILL ALSO PREVENT ANY HOOKS (PlaceholderAPI)
  47. config-cache: false
  48.  
  49.  
  50. # Condition engine
  51. # This is the engine that will be used to evaluate the conditions
  52. # Only edit when you know what you are doing!
  53. engine: 'javascript'
  54.  
  55.  
  56. # Configure the database. This database is used to keep track
  57. # of the players that have been granted the condition permissions
  58. # already.
  59. #
  60. # Default it is set up for SQLite. MySQL support
  61. #
  62. # NOTE: The databases are not convertible between types
  63. database:
  64. # Database configuration is SIMILAR to http://wiki.bukkit.org/Bukkit.yml#database
  65. # with isolation, url, driver, ...
  66. # Database name
  67. database: "conditionperms"
  68. # Database username
  69. username: bukkit
  70. # Database password
  71. password: walrus
  72. # Database driver URL
  73. # {DIR} will be replaced with the plugin directory
  74. # {NAME} will be replaced wit the plugin name
  75. url: jdbc:sqlite:{DIR}{NAME}.db
  76. # Save interval in ticks
  77. save-interval: 6000
  78.  
  79. # A list of all conditions you configured
  80. # You can add your own conditions yourself
  81. # For more detailed info see the plugin page
  82. conditions:
  83. health-example: # This is a random name given to a condition
  84. condition: '{health} < 10' # Here you define the statement of the condition
  85. checkinterval: 60 # This is the interval in ticks the condition is checked
  86. revoke: true # If set to true conditions will be revoked when no longer met
  87. cooldown: 0 # This is the check cooldown (in ticks) after the check is true. A use could be:
  88. # for example you want to check if a player is in an area (fast)
  89. # and you want to send a message every X ticks.
  90. allplayers: false # Check the condition on all players (performance drop)
  91. commands-on-grant: # Execute all commands below this when the condition is met
  92. - 'say {player} has low health! Help him!!'
  93. commands-on-revoke: # Execute all commands on revoke (revoke needs to be true)
  94. - 'say {player} is back OK!'
  95. permissions: # Grant and/or revoke following permissions
  96. - ''
  97. permission-world: '' # The world used to add permissions to, leave empty for player location
  98. bed-location-example:
  99. condition: '(Math.abs({x} - {bed_x}) < 10) && (Math.abs({y} - {bed_y}) < 10) && (Math.abs({z} - {bed_z}) < 10)'
  100. checkinterval: 20
  101. revoke: true
  102. allplayers: false
  103. commands-on-grant:
  104. - 'console:say {player} you are close to your bed!'
  105. commands-on-revoke:
  106. - 'console:say {player} no no! wrong way!'
  107. permissions: []
  108. permission-world: ''
  109. specific-player-example:
  110. condition: '"{player}" == "Maximvdw"'
  111. checkinterval: 60
  112. revoke: false
  113. allplayers: false
  114. commands-on-grant:
  115. - 'console:say You are Maximvdw!'
  116. test: # This is a random name given to a condition
  117. condition: '{stat_blocksmined} > 15470' # Here you define the statement of the condition
  118. checkinterval: 120 # This is the interval in ticks the condition is checked
  119. revoke: false # If set to true conditions will be revoked when no longer met
  120. allplayers: false # Check the condition on all players (performance drop)
  121. commands-on-grant: # Execute all commands below this when the condition is met
  122. - 'console:lp user {player} permission set test.permission true'
  123. - 'console:cmi msg {player} you mined a lot of blocks'
  124. test2: # This is a random name given to a condition
  125. condition: '{stat_blocksmined} > 100' # Here you define the statement of the condition
  126. checkinterval: 60 # This is the interval in ticks the condition is checked
  127. revoke: false # If set to true conditions will be revoked when no longer met
  128. allplayers: false # Check the condition on all players (performance drop)
  129. commands-on-grant: # Execute all commands below this when the condition is met
  130. - 'console:lp user {player} permission set test.permission2 true'
  131. - 'console:cmi msg {player} you mined some blocks'
  132. commands-on-revoke: # Execute all commands on revoke (revoke needs to be true)
  133. - 'console:say {player} is no longer flying :)'
  134. test3: # This is a random name given to a condition
  135. condition: '{stat_blocksmined} > 15670' # Here you define the statement of the condition
  136. checkinterval: 120 # This is the interval in ticks the condition is checked
  137. revoke: false # If set to true conditions will be revoked when no longer met
  138. allplayers: false # Check the condition on all players (performance drop)
  139. commands-on-grant: # Execute all commands below this when the condition is met
  140. - 'console:lp user {player} permission set test.permission true'
  141. - 'console:cmi msg {player} you mined a lot of blocks'
  142. permission: 'test3'
  143. test4: # This is a random name given to a condition
  144. condition: '{stat_blocksmined} > 15710' # Here you define the statement of the condition
  145. checkinterval: 120 # This is the interval in ticks the condition is checked
  146. revoke: false # If set to true conditions will be revoked when no longer met
  147. allplayers: false # Check the condition on all players (performance drop)
  148. commands-on-grant: # Execute all commands below this when the condition is met
  149. - 'console:lp user {player} permission set test.permission true'
  150. - 'console:cmi msg {player} you mined a lot of blocks'
  151. permission: 'test4'
  152. test5: # This is a random name given to a condition
  153. condition: '{stat_fishcaught} > 5' # Here you define the statement of the condition
  154. checkinterval: 120 # This is the interval in ticks the condition is checked
  155. revoke: false # If set to true conditions will be revoked when no longer met
  156. allplayers: false # Check the condition on all players (performance drop)
  157. commands-on-grant: # Execute all commands below this when the condition is met
  158. - 'console:lp user {player} permission set test.permission true'
  159. - 'console:cmi msg {player} smelling fishy'
  160. permission: 'test5'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement