Facebook
From Silly Baboon, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 48
  1. checkInterval: 60  # In ticks (20 ticks = 1 second)
  2. movementDistance: 3 # Amount of blocks a player needs to move to be counted as not afk
  3. checksBeforeAfk: 100 # Amount of checks a person needs to not have moved enough to be AFK
  4. enableAfkCommand: true # Reloading the plugin WILL NOT disable this command, you need to reload the whole server for this to disable!
  5.  
  6. messages:
  7.   prefix: '&6&lAdvanced-Kind >>&r&7 '
  8.   insufficientPermissions: '%openafk_prefix%Insufficient Permissions.'
  9.   invalidUsage: '%openafk_prefix%Invalid Usage.'
  10.   reloading: '%openafk_prefix%Reloading...'
  11.   reloaded: '%openafk_prefix%Reloaded.'
  12.   mustBeAPlayer: '%openafk_prefix%You must be a player to use this command.'
  13.   afkAreaSet: '%openafk_prefix%AFK Area set successfully.'
  14.   playerIsInvincible: '%openafk_prefix%%player_name% is currently AFK and therefore invincible.'
  15.  
  16.   isAfk:
  17.     unknown: "%openafk_prefix%Unknown Username or UUID. (Players must be online)."
  18.     notEnoughArgs: "%openafk_prefix%Not enough arguments provided. Usage /isafk <username/uuid>"
  19.     afk: "%openafk_prefix%%player_name% is currently AFK."
  20.     notAfk: "%openafk_prefix%%player_name% is currently active."
  21.  
  22.   afkList:
  23.     listPrefix: "%openafk_prefix%The following players are currently AFK: "
  24.     inventoryTitle: "&7Currently AFK Players."
  25.  
  26. # If the user has the permission openafk.groups.donator then they will inherit the settings from the donator rank.
  27. # Ranks at the top of the list have the highest priority
  28. groups:
  29.   donator:
  30.     checkAmount: 200
  31.  
  32. detection:
  33.   gamemodes:
  34.     survival: true
  35.     adventure: true
  36.     creative: false # This will disable players from going afk if they are in this gamemode
  37.     spectator: false
  38.  
  39.   # If an event is enabled then the checks for the player are reset.
  40.   # These events firing WILL NOT cause a script to run.
  41.   events:
  42.     blockBreakEvent: true
  43.     blockPlaceEvent: true
  44.     chatEvent: true
  45.  
  46.  
  47.   fishing:
  48.     enabled: true
  49.     violationsNeeded: 5
  50.  
  51.   operatorsExempt: true # Players who have the permission openafk.exempt but aren't OP will still be exempt
  52.  
  53. scripts:
  54.   onAfk:
  55.     - action: "afkarea"
  56.  
  57.     - action: "message"
  58.       content: "&cNow AFK"
  59.       repeat: 2
  60.  
  61.     - action: "title"
  62.       title: "&6&lAFK"
  63.       subtitle: "&6&lSee you soon!"
  64.       fadeIn: 10
  65.       fadeOut: 10
  66.       stay: "permanent"
  67.  
  68.     - action: "actionbar"
  69.       content: "&c&lAFK."
  70.       to: "player"
  71.       permanent: true
  72.  
  73.   onReturn:
  74.     - action: "afkarea"
  75.  
  76.     - action: "message"
  77.       content: "&6No longer AFK"
  78.  
  79.     - action: "title"
  80.       title: "&6&lWelcome Back!"
  81.       fadeIn: 10
  82.       fadeOut: 10
  83.       stay: 20
  84.  
  85.     - action: "actionbar"
  86.       reset: true
  87.  
  88.     - action: "actionbar"
  89.       content: "&6&lWelcome Back."
  90.   onFishingAFK:
  91.     - action: "look"
  92.       pitch: 100
  93.  
  94.     - action: "message"
  95.       content: "AFK Fishing isn't allowed."
  96.  
  97.