sora200507

Untitled

Apr 7th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. command /watchdogreport [<player>] [<text>]:
  2. aliases:/wdr
  3. trigger:
  4. if arg-1 is set:
  5. if arg-2 is "killaura":
  6. if {watchdog::%arg-1%.reasonkillaura} is true:
  7. message "[WATCHDOG]&cプレイヤー%{watchdog::%arg-1%.report}%によってこのプレイヤーは報告されています"
  8. stop
  9. else:
  10. message "&f[WATCHDOG]&cプレイヤー%arg-1%に対しkillauraの報告をしました"
  11. set {watchdog::%arg-1%.reasonkillaura} to true
  12. set {watchdog::%arg-1%.report} to player
  13. loop all players:
  14. loop-player is op
  15. message "[WATCHDOG]&c%arg-1%にkillauraの報告がされました by %player%" to loop-player
  16. wait 10 seconds
  17. clear {watchdog::%arg-1%.reasonkillaura}
  18. clear {watchdog::%arg-1%.report}
  19. stop
  20. if arg-2 is "fly":
  21. if {watchdog::%arg-1%.reasonfly} is true:
  22. message "[WATCHDOG]&cプレイヤー%{watchdog::%arg-1%.report}%によってこのプレイヤーは報告されています"
  23. stop
  24. else:
  25. if player has permission "fly.use":
  26. message "[WATCHDOG]&cこのプレイヤーはfly権限を持っています"
  27. stop
  28. else:
  29. message "&f[WATCHDOG]&cプレイヤー%arg-1%に対しflyの報告をしました"
  30. set {watchdog::%arg-1%.reasonfly} to true
  31. set {watchdog::%arg-1%.report} to player
  32. arg-1 is flying
  33. arg-1's gamemode is survival
  34. execute console command "/kick %arg-1% [WatchDogDetection]あなたはプレイヤーの報告によってキックされました"
  35. loop all players:
  36. loop-player is op
  37. message "[WATCHDOG]&c%arg-1%にflyの報告がされました by %player%" to loop-player
  38. stop
  39. command /resetallreport:
  40. permission :skript.wdr
  41. trigger:
  42. clear {watchdog::*}
  43. message "&c成功"
  44. stop
  45. every 10 seconds:
  46. clear {watchdog::*}
Advertisement
Add Comment
Please, Sign In to add comment