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: "&3&lDivineWoods &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: 300
- #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: []
- playtime:
- 7200:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Rookie!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.rookie"
- - "COMMAND|eco give %PLAYER% 300"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lRookie"
- 21600:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Amatuer!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.amatuer"
- - "COMMAND|eco give %PLAYER% 500"
- - "COMMAND|xp give %PLAYER% 255"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lAmatuer"
- 172800:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Adventurer!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.adventurer"
- - "COMMAND|eco give %PLAYER% 1000"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lAdventurer"
- 345600:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Explorer!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.explorer"
- - "COMMAND|eco give %PLAYER% 1200"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lExplorer"
- 518400:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Citizen!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.citizen"
- - "COMMAND|eco give %PLAYER% 1500"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lCitizen"
- 691200:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Merchant!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.merchant"
- - "COMMAND|eco give %PLAYER% 2000"
- - "COMMAND|xp give %PLAYER% 825"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lMerchant"
- 864000:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Treasurer!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.treasurer"
- - "COMMAND|eco give %PLAYER% 2800"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lTreasurer"
- 1123200:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Captain!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.captain"
- - "COMMAND|upc addPlayerPermission %PLAYER% ProCosmetics.Pets.Doggy"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lCaptain"
- 1296000:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Commander!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.commander"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lCommander"
- 1468800:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Warrior!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.warrior"
- - "COMMAND|upc addPlayerPermission %PLAYER% essentials.sethome.multiple.baron"
- - "COMMAND|upc addPlayerPermission %PLAYER% essentials.sethome.multiple"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lWarrior"
- 1641600:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Noble!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.noble"
- - "COMMAND|upc addPlayerPermission %PLAYER% ProCosmetics.Particle-Effects.Shadow-Walk"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lNoble"
- 1814400:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Guardian!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.guardian"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lNoble"
- 2073600:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Champion!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.champion"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lChampion"
- 2246400:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Paragon!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.paragon"
- - "COMMAND|xp give %PLAYER% 1469"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lParagon"
- 2419200:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Hero!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.hero"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lHero"
- 2592000:
- - "MESSAGE|&3&lDivineWoods &7» &7You have played for 2 Hours! &7You have been promoted to &3Legend!"
- - "COMMAND|upc addPlayerPermission %PLAYER% rank.legend"
- - "COMMAND|eco give %PLAYER% 6000"
- - "COMMAND|sound playother %PLAYER% ENTITY_PLAYER_LEVELUP 1 1"
- - "TITLE|&3&lRANK UP!;&7You are now rank &3&lLegend"
- store_player_time: true #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