Advertisement
CREAMPAN0408

Untitled

Dec 23rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 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. #_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
  39. # #
  40. # メンテナンス・オートキック #
  41. # Maintenance Auto Kick #
  42. # #
  43. #_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
  44.  
  45. #==========command==========#
  46. # aliases : /k #
  47. # /autokick help #
  48. # /autokick reset #
  49. #===========================#
  50. #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  51. #==========#
  52. # 設定 #
  53. #==========#
  54. options:
  55. お知らせ1: ======================
  56. お知らせ2: いまはメンテナンス中です
  57. お知らせ3: 製作中です( ˘ω˘)スヤァ
  58. お知らせ4: ======================
  59. #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  60. #==========#
  61. # コード #
  62. #==========#
  63. on join:
  64. wait 1 second
  65. if player is op:
  66. stop
  67. else:
  68. if {%player%auto-kick} is not set:
  69. execute console command "kick %player% {@お知らせ1}"
  70. add 1 to {%player%auto-kick}
  71. else if {%player%auto-kick} is 1:
  72. execute console command "kick %player% {@お知らせ2}"
  73. add 1 to {%player%auto-kick}
  74. else if {%player%auto-kick} is 2:
  75. execute console command "kick %player% {@お知らせ3}"
  76. add 1 to {%player%auto-kick}
  77. else if {%player%auto-kick} is 3:
  78. execute console command "kick %player% {@お知らせ4}"
  79.  
  80. command /autokick <text>:
  81. aliases: ak
  82. trigger:
  83. player is op
  84. if arg is "help":
  85. send "&d=============&a&lMaintenance Auto Kick command&d=============" to player
  86. send "&6短縮コマンド : &b/ak" to player
  87. send "&b/autokick help &7- &eこのヘルプメニュー表示" to player
  88. send "&b/autokick reset &7- &eキック時の表示メッセージを最初に戻す" to player
  89. send "&d===========================================================" to player
  90. else if arg is "reset":
  91. clear {%player%auto-kick}
  92. send "&7[&aAutoKick&7] : キック時の表示メッセージを最初に戻しました!" to player
  93.  
  94. #====================#
  95. # #
  96. # Big Ender Chesat #
  97. # #
  98. #====================#
  99.  
  100. on right click:
  101. event-block is ender chest
  102. cancel event
  103. open virtual chest inventory with size 6 named "Big Ender Chest" to player
  104. set {_slot} to 0
  105. loop {EnderChest%player%::*}:
  106. set slot {_slot} of player's current inventory to loop-value
  107. add 1 to {_slot}
  108.  
  109. on inventory close:
  110. inventory name of player's current inventory is "Big Ender Chest"
  111. clear {EnderChest%player%::*}
  112. set {_slot} to 0
  113. loop 54 times:
  114. add slot {_slot} of player's current inventory to {EnderChest%player%::*}
  115. add 1 to {_slot}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement