Advertisement
Guest User

Untitled

a guest
Feb 11th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 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: "&6SUP &8&l» "
  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. #These actions are executed if the players time (in seconds) is equal to the number below
  19. #Action format:
  20. # ACTION|Value
  21. #Possible Actions@
  22. # COMMAND Example: COMMAND|kick %PLAYER% don't afk... *Executes a command and replaces %PLAYER% with the players name
  23. # 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
  24. # SOUND Example: SOUND|BLOCK_LADDER_HIT *NOTE YOU WILL NEED TO USE THE CORRECT SOUND NAME FOR YOUR MC VERSION
  25. # MESSAGE Example: MESSAGE|Hey, %PLAYER%, wake up! *Sends the message to a player, replace %PLAYER% with the players name
  26. # SERVER Example: SERVER|lobby *Players will be sent to a server called 'lobby'
  27. # PERMISSION Example: PERMISSION|antiafkpro.default *Players will need the required permission, else the action will not continue
  28. #
  29. # 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
  30. #MVdWPlaceholders Supported :)
  31. #
  32. actions:
  33. #
  34. #Actions that are executed when the player is AFK
  35. #
  36. afk:
  37. 120: #120 seconds = 2 minutes
  38. - "MESSAGE|&eAFK &7» &cYou have been AFK for two minutes, you will be kicked soon!"
  39. - "TITLE|&6You have been ; &6AFK for two minutes"
  40. 295:
  41. - "TITLE|&6Anti AFK ; &bYou will be kicked in &c5 &bseconds"
  42. 296:
  43. - "TITLE|&6Anti AFK ; &bYou will be kicked in &c4 &bseconds"
  44. 297:
  45. - "TITLE|&6Anti AFK ; &bYou will be kicked in &c3 &bseconds"
  46. 298:
  47. - "TITLE|&6Anti AFK ; &bYou will be kicked in &c2 &bseconds"
  48. 299:
  49. - "TITLE|&6Anti AFK ; &bYou will be kicked in &c1 &bsecond"
  50. 300: #300 seconds = 5 minutes
  51. - "COMMAND|kick %PLAYER% You have been kicked as you have been AFK for 5 minutes"
  52. #
  53. ## Actions that are executed when the player plays for a certain time (store_player_time needs to be enabled for this)
  54. #
  55. playtime:
  56. 1800: #300 seconds = 5 minutes
  57. - "MESSAGE|&6SUP &8&l» &cYou have played for 30 Minutes! &6You have been rewarded with 1 Token!"
  58. - "MESSAGE|&b/playtime &fto check how long you've been playing!"
  59. - "COMMAND|token add %PLAYER% 1"
  60. # 3600: #3600 seconds = 1 hour
  61. # - "MESSAGE|&ePlayTime &7» &cYou have played for 1 hour! &6You have been rewarded with $1000!"
  62. # - "COMMAND|eco give %PLAYER% 1000"
  63. # 86400: #86400 seconds = 1 day
  64. # - "MESSAGE|&ePlayTime &7» &cYou have played for 1 day - Wow, you really like this server! &6You have been rewarded with $10000!"
  65. # - "COMMAND|eco give %PLAYER% 10000"
  66. 3600%: # -- PUTTING A % AFTER A NUMBER MEANS IT WILL BE REPEATED EVERY X SECONDS
  67. - "MESSAGE|&6SUP &8&l» &cYou have been rewarded with 1 token for playing! "
  68. - "COMMAND|token add %PLAYER% 1"
  69.  
  70.  
  71. store_player_time: true #Will store players time
  72. enable_player_time_gui: true #If this is false, doing /afk (or alias) will tell the player his/her time in chat
  73.  
  74. afk_ignore_opped_players: true #afk actions will not effect opped players
  75.  
  76. # -- Database storage --
  77.  
  78. #Either you may use SQLite or MySQL (Can use MySQL to enable a single cross-server database to store players time in)
  79. #If you do not understand these settings, it's probably best not to change
  80. #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)
  81. database:
  82. sqlite:
  83. use: false
  84. db: "data"
  85. mysql:
  86. use: true
  87. host: "IP"
  88. user: "USER"
  89. password: "PASSWORD"
  90. port: "3306"
  91. db: "DATABASE"
  92. ssl: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement