Advertisement
Guest User

Untitled

a guest
May 16th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.76 KB | None | 0 0
  1. #############################################
  2. # #
  3. # AntiAFKPro #
  4. # Created by Jet315 #
  5. # #
  6. #############################################
  7.  
  8. #The prefix that is shown before the plugin
  9. plugins_prefix: "&3&lDivineWoods &7» "
  10.  
  11.  
  12. # -- Plugin Settings --
  13.  
  14. #The check delay in seconds - These calculations are done ASync so I wouldn't suggest changing this (It's not going to effect performance)
  15. #If you do change it, the actions below must be divisible by this number (I wouldn't suggest changing it, but you have the option too)
  16. check_delay: 1
  17.  
  18. #Do you want to stop the player getting playtime, if the player is AFK? if so, how long should the player be AFK for before it stops counting playtime?
  19. #set to -1 to disable
  20. afk_stop_counting_playtime: 300
  21.  
  22.  
  23. #These actions are executed if the players time (in seconds) is equal to the number below
  24. #Action format:
  25. # ACTION|Value
  26. #Possible Actions@
  27. # COMMAND Example: COMMAND|kick %PLAYER% don't afk... *Executes a command and replaces %PLAYER% with the players name
  28. # TITLE Example: TITLE|Title Text;SubTitle Text *Shows a title to the player and replaces %PLAYER% with the players name and ; to split title;subtitle
  29. # SOUND Example: SOUND|BLOCK_LADDER_HIT *NOTE YOU WILL NEED TO USE THE CORRECT SOUND NAME FOR YOUR MC VERSION
  30. # MESSAGE Example: MESSAGE|Hey, %PLAYER%, wake up! *Sends the message to a player, replace %PLAYER% with the players name
  31. # SERVER Example: SERVER|lobby *Players will be sent to a server called 'lobby'
  32. # PERMISSION Example: PERMISSION|antiafkpro.default *Players will need the required permission, else the action will not continue
  33. #
  34. # If you want to repeat an action, say every 10 minutes reward a player, simply add a % after the number (see playtime as an example
  35. #MVdWPlaceholders Supported :)
  36. #
  37. actions:
  38. #
  39. #Actions that are executed when the player is AFK
  40. #
  41. afk: []
  42.  
  43. playtime:
  44. 7200:
  45. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Rookie!"
  46. - "COMMAND|upc addPlayerPermission %PLAYER% rank.rookie"
  47. - "COMMAND|eco give %PLAYER% 300"
  48. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  49. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lRookie"
  50. 21600:
  51. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Amatuer!"
  52. - "COMMAND|upc addPlayerPermission %PLAYER% rank.amatuer"
  53. - "COMMAND|eco give %PLAYER% 500"
  54. - "COMMAND|xp give %PLAYER% 255"
  55. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  56. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lAmatuer"
  57. 172800:
  58. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Adventurer!"
  59. - "COMMAND|upc addPlayerPermission %PLAYER% rank.adventurer"
  60. - "COMMAND|eco give %PLAYER% 1000"
  61. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  62. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lAdventurer"
  63. 345600:
  64. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Explorer!"
  65. - "COMMAND|upc addPlayerPermission %PLAYER% rank.explorer"
  66. - "COMMAND|eco give %PLAYER% 1200"
  67. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  68. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lExplorer"
  69. 518400:
  70. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Citizen!"
  71. - "COMMAND|upc addPlayerPermission %PLAYER% rank.citizen"
  72. - "COMMAND|eco give %PLAYER% 1500"
  73. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  74. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lCitizen"
  75. 691200:
  76. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Merchant!"
  77. - "COMMAND|upc addPlayerPermission %PLAYER% rank.merchant"
  78. - "COMMAND|eco give %PLAYER% 2000"
  79. - "COMMAND|xp give %PLAYER% 825"
  80. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  81. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lMerchant"
  82. 864000:
  83. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Treasurer!"
  84. - "COMMAND|upc addPlayerPermission %PLAYER% rank.treasurer"
  85. - "COMMAND|eco give %PLAYER% 2800"
  86. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  87. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lTreasurer"
  88. 1123200:
  89. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Captain!"
  90. - "COMMAND|upc addPlayerPermission %PLAYER% rank.captain"
  91. - "COMMAND|upc addPlayerPermission %PLAYER% ProCosmetics.Pets.Doggy"
  92. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  93. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lCaptain"
  94. 1296000:
  95. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Commander!"
  96. - "COMMAND|upc addPlayerPermission %PLAYER% rank.commander"
  97. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  98. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lCommander"
  99. 1468800:
  100. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Warrior!"
  101. - "COMMAND|upc addPlayerPermission %PLAYER% rank.warrior"
  102. - "COMMAND|upc addPlayerPermission %PLAYER% essentials.sethome.multiple.baron"
  103. - "COMMAND|upc addPlayerPermission %PLAYER% essentials.sethome.multiple"
  104. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  105. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lWarrior"
  106. 1641600:
  107. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Noble!"
  108. - "COMMAND|upc addPlayerPermission %PLAYER% rank.noble"
  109. - "COMMAND|upc addPlayerPermission %PLAYER% ProCosmetics.Particle-Effects.Shadow-Walk"
  110. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  111. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lNoble"
  112. 1814400:
  113. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Guardian!"
  114. - "COMMAND|upc addPlayerPermission %PLAYER% rank.guardian"
  115. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  116. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lNoble"
  117. 2073600:
  118. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Champion!"
  119. - "COMMAND|upc addPlayerPermission %PLAYER% rank.champion"
  120. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  121. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lChampion"
  122. 2246400:
  123. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Paragon!"
  124. - "COMMAND|upc addPlayerPermission %PLAYER% rank.paragon"
  125. - "COMMAND|xp give %PLAYER% 1469"
  126. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  127. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lParagon"
  128. 2419200:
  129. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Hero!"
  130. - "COMMAND|upc addPlayerPermission %PLAYER% rank.hero"
  131. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  132. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lHero"
  133. 2592000:
  134. - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Legend!"
  135. - "COMMAND|upc addPlayerPermission %PLAYER% rank.legend"
  136. - "COMMAND|eco give %PLAYER% 6000"
  137. - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
  138. - "TITLE|&3&lRANK UP!;&7You are now rank &3&lLegend"
  139.  
  140. store_player_time: true #Will store players time
  141. enable_player_time_gui: true #If this is false, doing /afk (or alias) will tell the player his/her time in chat
  142.  
  143. afk_ignore_opped_players: true #afk actions will not effect opped players
  144.  
  145. # -- Database storage --
  146.  
  147. #Either you may use SQLite or MySQL (Can use MySQL to enable a single cross-server database to store players time in)
  148. #If you do not understand these settings, it's probably best not to change
  149. #There is currently no way to transfer data from one storage solution to another (I.E changing storage types after setting up the plugin will cause player data to start over)
  150. database:
  151. sqlite:
  152. use: true
  153. db: "data"
  154. mysql:
  155. use: false
  156. host: "localhost"
  157. user: "root"
  158. password: "pa55sw0rd"
  159. port: "3306"
  160. db: "antiafkpro"
  161. ssl: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement