Advertisement
yozora_1202

Untitled

Jun 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
  2. # #
  3. # Anti Spam Chat&Command #
  4. # #
  5. #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
  6. #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  7. #==========#
  8. # 設定 #
  9. #==========#
  10. options:
  11. prefix: &7&l[&4AntiSpam&7&l]&r
  12. 警告文[chat]: &c連続でチャットをすることは出来ません!
  13. 警告文[command]: &c連続でコマンドを実行することは出来ません!
  14. クールダウン[chat]: 2 second
  15. クールダウン[command]: 2 second
  16. #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  17. #==========#
  18. # コード #
  19. #==========#
  20. on join:
  21. set {%player%cooldwon-chat} to now
  22. set {%player%cooldwon-command} to now
  23.  
  24. on chat:
  25. difference between {%player%cooldwon-chat} and now is less than {@クールダウン[chat]}:
  26. cancel event
  27. send "{@prefix} {@警告文[chat]}" to player
  28. else:
  29. set {%player%cooldwon-chat} to now
  30.  
  31. on command:
  32. difference between {%player%cooldwon-command} and now is less than {@クールダウン[command]}:
  33. cancel event
  34. send "{@prefix} {@警告文[command]}" to player
  35. else:
  36. set {%player%cooldwon-command} to now
  37.  
  38. options:
  39. prefixs: &c[くじ] &r
  40.  
  41. on rightclick holding paper:
  42. name of held item contains "&e宝くじ"
  43. remove 1 of held item from player
  44. add 20 to {bronze.elected}
  45. message "{@prefixs} 当選予定額のストック: &6%{bronze.elected}% 円"
  46.  
  47. chance of 1%:
  48. broadcast "{@prefixs} §r %player% §cさんが§b§n[宝くじ]§r§cを当選しました"
  49. broadcast "{@prefixs} §r %player% の当選額: &e&l %{bronze.elected}% 円"
  50. add {bronze.elected} to player's balance
  51. set {bronze.elected} to 10000
  52.  
  53.  
  54. # __________________________________________________________
  55. # / / / /\ \
  56. # \_\___________________________________________________\_\/ /
  57. # / / _____ __ __ / /
  58. # / / / ____\ / / /_/ /\ / /
  59. # / / / /__ / /___ ___ __ ______ __/ /_ / /
  60. # / / \___ \ / __/ / __\ / / / __ //_ __/ / /
  61. # / / ____/ / / /\ \ / / / / / /_/ / / / / /
  62. # / / \_____/ /_/ /_/ /_/ /_/ / ____/ /_/ / /__
  63. # / / ========================== / / ========== / / \ \
  64. # | | /_/ | | | |
  65. # \_\_________________________________________________\_\_/_/
  66.  
  67.  
  68. # CommandSpy By Yopon
  69. # Discord : https://discord.gg/MgRVHPW
  70. # YouTube : https://www.youtube.com/channel/UCuLa31NHlLwiQz0cW7T60fQ
  71. # Twitter : https://twitter.com/Yopon100
  72.  
  73.  
  74. options:
  75. enabledmsg: &a CommandSpy が有効になりました。
  76. disablemsg: &a CommandSpy が無効になりました。
  77. permission: admins.cmdspy
  78. prefix: &6[&dCmdSpy&6]&a
  79. cmdspy: &6&l%player%&f: &e/%full command%
  80.  
  81. command /cmdspy:
  82. aliases: commandspy
  83. trigger:
  84. if player has permission "{@permission}":
  85. if {cmdspy::%player%} is not set:
  86. set {cmdspy::%player%} to true
  87. send "{@prefix} {@enabledmsg}"
  88. else:
  89. delete {cmdspy::%player%}
  90. send "{@prefix} {@disablemsg}"
  91.  
  92. on command:
  93. player is online
  94. loop all players:
  95. {cmdspy::%loop-player%} is true
  96. if player is op:
  97. send "{@prefix} {@cmdspy}" to loop-player
  98. else:
  99. send "{@prefix} {@cmdspy}" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement