SHARE
TWEET

Untitled

a guest May 19th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. #Any world names listed here, if a player is in it, the AFK actions wont be executed against
  23. afk_exempt_worlds:
  24.   - world
  25.   - ASkyblock
  26.   - ASkyblock_nether
  27.   - Battleground
  28.   - Mining
  29. #Any world names listed here, if a player is in it, the playtime actions wont be executed against
  30. playtime_exempt_worlds:
  31.   - example_world
  32.  
  33. #These actions are executed if the players time (in seconds) is equal to the number below
  34. #Action format:
  35. #  ACTION|Value
  36. #Possible Actions@
  37. #  COMMAND      Example: COMMAND|kick %PLAYER% don't afk...   *Executes a command and replaces %PLAYER% with the players name
  38. #  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
  39. #  SOUND        Example: SOUND|BLOCK_LADDER_HIT               *NOTE YOU WILL NEED TO USE THE CORRECT SOUND NAME FOR YOUR MC VERSION
  40. #  MESSAGE      Example: MESSAGE|Hey, %PLAYER%, wake up!       *Sends the message to a player, replace %PLAYER% with the players name
  41. #  SERVER       Example: SERVER|lobby                         *Players will be sent to a server called 'lobby'
  42. #  PERMISSION   Example: PERMISSION|antiafkpro.default        *Players will need the required permission, else the action will not continue
  43. #
  44. # 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
  45. #MVdWPlaceholders Supported :)
  46. #
  47. actions:
  48. #
  49. #Actions that are executed when the player is AFK
  50. #
  51.   afk:
  52.     999999999: #120 seconds = 2 minutes
  53.       -  "MESSAGE|&eAFK &7» &cYou have been AFK for two minutes, you will be kicked soon!"
  54.       -  "TITLE|&6You have been ; &6AFK for two minutes"
  55.     9999999999:
  56.       -  "TITLE|&6Anti AFK ; &bYou will be kicked in &c5 &bseconds"
  57.     9999999999:
  58.       -  "TITLE|&6Anti AFK ; &bYou will be kicked in &c4 &bseconds"
  59.     999999999:
  60.       -  "TITLE|&6Anti AFK ; &bYou will be kicked in &c3 &bseconds"
  61.     999999999:
  62.       -  "TITLE|&6Anti AFK ; &bYou will be kicked in &c2 &bseconds"
  63.     999999999:
  64.       -  "TITLE|&6Anti AFK ; &bYou will be kicked in &c1 &bsecond"
  65.     999999999: #300 seconds = 5 minutes
  66.       -  "COMMAND|kick %PLAYER% You have been kicked as you have been AFK for 5 minutes"
  67. #
  68. ## Actions that are executed when the player plays for a certain time (store_player_time needs to be enabled for this)
  69. #
  70.   playtime:
  71.     300: #300 seconds = 5 minutes
  72.       -  "MESSAGE|&2PlayTime » &7You have played for &25 Minutes! &7You have been rewarded with &2$10,000!"
  73.       -  "COMMAND|eco give %PLAYER% 10000"
  74.     3600: #3600 seconds = 1 hour
  75.       -  "MESSAGE|&ePlayTime &7» &cYou have played for 1 hour! &6You have been rewarded with $1000!"
  76.       -  "COMMAND|eco give %PLAYER% 1000"
  77.     86400: #86400 seconds = 1 day
  78.       -  "MESSAGE|&ePlayTime &7» &cYou have played for 1 day - Wow, you really like this server! &6You have been rewarded with $10000!"
  79.       -  "COMMAND|eco give %PLAYER% 10000"
  80.     600%: # -- PUTTING A % AFTER A NUMBER MEANS IT WILL BE REPEATED EVERY X SECONDS
  81.       -  "MESSAGE|&eAFK &7» &cYou have been rewarded with $100 for playing! "
  82.       -  "COMMAND|eco give %PLAYER% 100"
  83.  
  84.  
  85. store_player_time: true #Will store players time
  86. enable_player_time_gui: true #If this is false, doing /afk (or alias) will tell the player his/her time in chat
  87.  
  88. afk_ignore_opped_players: true #afk actions will not effect opped players
  89.  
  90. # -- Database storage --
  91.  
  92. #Either you may use SQLite or MySQL (Can use MySQL to enable a single cross-server database to store players time in)
  93. #If you do not understand these settings, it's probably best not to change
  94. #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)
  95. database:
  96.   sqlite:
  97.     use: true
  98.     db: "data"
  99.   mysql:
  100.     use: false
  101.     host: "localhost"
  102.     user: "root"
  103.     password: "pa55sw0rd"
  104.     port: "3306"
  105.     db: "antiafkpro"
  106.     ssl: false
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top