Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #############################################
- # #
- # AntiAFKPro #
- # Created by Jet315 #
- # #
- #############################################
- #The prefix that is shown before the plugin
- plugins_prefix: "&eAFK &7» "
- # -- Plugin Settings --
- #The check delay in seconds - These calculations are done ASync so I wouldn't suggest changing this (It's not going to effect performance)
- #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)
- check_delay: 1
- #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?
- #set to -1 to disable
- afk_stop_counting_playtime: -1
- #These actions are executed if the players time (in seconds) is equal to the number below
- #Action format:
- # ACTION|Value
- #Possible Actions@
- # COMMAND Example: COMMAND|kick %PLAYER% don't afk... *Executes a command and replaces %PLAYER% with the players name
- # 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
- # SOUND Example: SOUND|BLOCK_LADDER_HIT *NOTE YOU WILL NEED TO USE THE CORRECT SOUND NAME FOR YOUR MC VERSION
- # MESSAGE Example: MESSAGE|Hey, %PLAYER%, wake up! *Sends the message to a player, replace %PLAYER% with the players name
- # SERVER Example: SERVER|lobby *Players will be sent to a server called 'lobby'
- # PERMISSION Example: PERMISSION|antiafkpro.default *Players will need the required permission, else the action will not continue
- #
- # 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
- #MVdWPlaceholders Supported :)
- #
- actions:
- #
- #Actions that are executed when the player is AFK
- #
- afk:
- 6300: #120 seconds = 2 minutes
- - "MESSAGE|&eAFK &7» &cYou have been AFK for two minutes, you will be kicked soon!"
- - "TITLE|&6You have been ; &6AFK for two minutes"
- 7195:
- - "TITLE|&6Anti AFK ; &bYou will be kicked in &c5 &bseconds"
- 7196:
- - "TITLE|&6Anti AFK ; &bYou will be kicked in &c4 &bseconds"
- 7197:
- - "TITLE|&6Anti AFK ; &bYou will be kicked in &c3 &bseconds"
- 7198:
- - "TITLE|&6Anti AFK ; &bYou will be kicked in &c2 &bseconds"
- 7199:
- - "TITLE|&6Anti AFK ; &bYou will be kicked in &c1 &bsecond"
- 7200: #300 seconds = 5 minutes
- - "COMMAND|kick %PLAYER% You have been kicked as you have been AFK for 5 minutes"
- #
- ## Actions that are executed when the player plays for a certain time (store_player_time needs to be enabled for this)
- #
- playtime:
- 300: #300 seconds = 5 minutes
- - "MESSAGE|&ePlayTime &7» &cYou have played for 5 Minutes! &6You have been rewarded with $100!"
- - "COMMAND|eco give %PLAYER% 100"
- 3600: #3600 seconds = 1 hour
- - "MESSAGE|&ePlayTime &7» &cYou have played for 1 hour! &6You have been rewarded with $1000!"
- - "COMMAND|eco give %PLAYER% 1000"
- 86400: #86400 seconds = 1 day
- - "MESSAGE|&ePlayTime &7» &cYou have played for 1 day - Wow, you really like this server! &6You have been rewarded with $10000!"
- - "COMMAND|eco give %PLAYER% 10000"
- 600%: # -- PUTTING A % AFTER A NUMBER MEANS IT WILL BE REPEATED EVERY X SECONDS
- - "MESSAGE|&eAFK &7» &cYou have been rewarded with $100 for playing! "
- - "COMMAND|eco give %PLAYER% 100"
- store_player_time: false #Will store players time
- enable_player_time_gui: true #If this is false, doing /afk (or alias) will tell the player his/her time in chat
- afk_ignore_opped_players: true #afk actions will not effect opped players
- # -- Database storage --
- #Either you may use SQLite or MySQL (Can use MySQL to enable a single cross-server database to store players time in)
- #If you do not understand these settings, it's probably best not to change
- #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)
- database:
- sqlite:
- use: true
- db: "data"
- mysql:
- use: false
- host: "localhost"
- user: "root"
- password: "pa55sw0rd"
- port: "3306"
- db: "antiafkpro"
- ssl: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement