SHARE
TWEET

AFK kick SKRIPT

K2Rk1o Nov 17th, 2018 (edited) 160 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ありがとう ꧁༒𝒞.𝒮𝓃ℴ𝓌༒꧂さん
  2. #レズビデオちょうだい
  3. #
  4. #OPの人は必ずコマンド afk-false打ってねじゃねーとkickされるぞ
  5.  
  6. #↓のやつはkickされる数値 afkmax = >200< 数字はいじっていいですが他はいじったらだめです
  7.  
  8. variables:
  9.     afkmax = 200
  10.  
  11. on chat:
  12.     delete {afpl%player%}
  13.  
  14. on join:
  15.     delete {afpl%player%}
  16.  
  17. on quit:
  18.     delete {afpl%player%}
  19.  
  20. on any movement:
  21.     delete {afpl%player%}
  22.  
  23. every 1 seconds:
  24.     loop all players:
  25.         if {afks.%loop-player%} is false:
  26.             stop
  27.         add 1 to {afpl%loop-player%}
  28.         wait 1 tick
  29.         if {afpl%loop-player%} is more than {afkmax}:
  30.             if {afk.%loop-player%} is true:
  31.                 stop
  32.             else:
  33.                 set {afk.%loop-player%} to true
  34.                 kick loop-player due to "AFKはKICK対称です。"
  35.                 stop
  36.  
  37. command /afk-true:
  38.     permission: skript.afk
  39.     trigger:
  40.         set {afks.%player%} to true
  41.         send "AFK なう"
  42.  
  43. command /afk-false:
  44.     permission: skript.afk
  45.     trigger:
  46.         set {afks.%player%} to false
  47.         send "AFK 解除"
  48.  
  49. command /afkcheck:
  50.     trigger:
  51.         send "&8[&6AFKSYSTEM&8]&eAFKの時間&f:%{afpl%player%}%"
  52.         stop
  53.  
  54. command /afkhelp:
  55.     permission: skript.admin
  56.     trigger:
  57.         send "&a"
  58.         send "&e----------------------------"
  59.         send "  &6&lAFK KICK SKRIPT"
  60.         send "&d"
  61.         send "  &6&lafk-true    "
  62.         send "  &e&lAFKSYSTEMが起動します"
  63.         send "  &a&l200秒放置していると"
  64.         send "  &a&lKICKされます"
  65.         send "  &6&lafk-false"
  66.         send "  &e&lAFKSYSTEMがSTOPします"
  67.         send "  &b&lafkcheck"
  68.         send "  &e&lAFkの時間を確認できます"
  69.         send "&e----------------------------"
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