Advertisement
Guest User

Untitled

a guest
May 16th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 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: "&eAFK &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: -1
  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. 6300: #120 seconds = 2 minutes
  43. - "MESSAGE|&eAFK &7» &cYou have been AFK for two minutes, you will be kicked soon!"
  44. - "TITLE|&6You have been ; &6AFK for two minutes"
  45. 7195:
  46. - "TITLE|&6Anti AFK ; &bYou will be kicked in &c5 &bseconds"
  47. 7196:
  48. - "TITLE|&6Anti AFK ; &bYou will be kicked in &c4 &bseconds"
  49. 7197:
  50. - "TITLE|&6Anti AFK ; &bYou will be kicked in &c3 &bseconds"
  51. 7198:
  52. - "TITLE|&6Anti AFK ; &bYou will be kicked in &c2 &bseconds"
  53. 7199:
  54. - "TITLE|&6Anti AFK ; &bYou will be kicked in &c1 &bsecond"
  55. 7200: #300 seconds = 5 minutes
  56. - "COMMAND|kick %PLAYER% You have been kicked as you have been AFK for 5 minutes"
  57. #
  58. ## Actions that are executed when the player plays for a certain time (store_player_time needs to be enabled for this)
  59. #
  60. playtime:
  61. 300: #300 seconds = 5 minutes
  62. - "MESSAGE|&ePlayTime &7» &cYou have played for 5 Minutes! &6You have been rewarded with $100!"
  63. - "COMMAND|eco give %PLAYER% 100"
  64. 3600: #3600 seconds = 1 hour
  65. - "MESSAGE|&ePlayTime &7» &cYou have played for 1 hour! &6You have been rewarded with $1000!"
  66. - "COMMAND|eco give %PLAYER% 1000"
  67. 86400: #86400 seconds = 1 day
  68. - "MESSAGE|&ePlayTime &7» &cYou have played for 1 day - Wow, you really like this server! &6You have been rewarded with $10000!"
  69. - "COMMAND|eco give %PLAYER% 10000"
  70. 600%: # -- PUTTING A % AFTER A NUMBER MEANS IT WILL BE REPEATED EVERY X SECONDS
  71. - "MESSAGE|&eAFK &7» &cYou have been rewarded with $100 for playing! "
  72. - "COMMAND|eco give %PLAYER% 100"
  73.  
  74.  
  75. store_player_time: false #Will store players time
  76. enable_player_time_gui: true #If this is false, doing /afk (or alias) will tell the player his/her time in chat
  77.  
  78. afk_ignore_opped_players: true #afk actions will not effect opped players
  79.  
  80. # -- Database storage --
  81.  
  82. #Either you may use SQLite or MySQL (Can use MySQL to enable a single cross-server database to store players time in)
  83. #If you do not understand these settings, it's probably best not to change
  84. #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)
  85. database:
  86. sqlite:
  87. use: true
  88. db: "data"
  89. mysql:
  90. use: false
  91. host: "localhost"
  92. user: "root"
  93. password: "pa55sw0rd"
  94. port: "3306"
  95. db: "antiafkpro"
  96. ssl: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement