Advertisement
Guest User

Untitled

a guest
May 20th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. #-------------------
  2. #Anti troll skript
  3. #Created by yuuki0121
  4. #Ver 1.0
  5. #-------------------
  6.  
  7. options:
  8. #設定
  9. Blockcommand: "pl" or "ban" or "pardon"#形を同じで増やしてください
  10. OwnerName: yuuki0121o#主の名前
  11. prefix: &c[ATS]
  12. permission: ats.owner
  13. password: YourPass
  14. #↑パスワードを設定しましょう
  15. command /antitroll [<text>] [<player>] [<text>]:
  16. permission: {@permission}
  17. permission message: Unknown command. Type "/help" for help.
  18. aliases: /at
  19. trigger:
  20. if arg 1 is not set:
  21. stop
  22. if arg 1 is "{@password}":
  23. send "&2&lパスワードが一致しました"
  24. wait 5 ticks
  25. if arg 2 is not set:
  26. send "&2&m+-------------------------------------+"
  27. send "&2allowは許可、denyは禁止"
  28. send "&2/at {Password} {Player} {allow or deny}"
  29. send "&2&m+-------------------------------------+"
  30. stop
  31.  
  32. if arg 3 is not set:
  33. send "&2&m+-------------------------------------+"
  34. send "&2allowは許可、denyは禁止"
  35. send "&2/at {Password} {Player} {allow or deny}"
  36. send "&2&m+-------------------------------------+"
  37. stop
  38.  
  39. if arg 3 is "allow":
  40. set {ats.%uuid of player%} to "allow"
  41. wait 10 ticks
  42. send "&2&l%arg 2%を許可しました"
  43. stop
  44.  
  45. if arg 3 is "deny":
  46. set {ats.%uuid of player%} to "deny"
  47. wait 10 ticks
  48. send "&2&l%arg 2%を拒否しました"
  49. stop
  50. else:
  51. send "&2&l失敗しました"
  52. else:
  53. stop
  54.  
  55.  
  56. on command {@Blockcommand}:
  57. if {ats.%uuid of player%} is "allow":
  58. stop
  59.  
  60. else:
  61. cancel event
  62. send "%player%さんが/%full command%コマンドを使おうとしました。" to {@OwnerName}
  63.  
  64. on place:
  65. if event-block is command block:
  66. if {ats.%uuid of player%} is "allow":
  67. stop
  68. else:
  69. cancel event
  70. else:
  71. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement