Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
- # #
- # Anti Spam Chat&Command #
- # #
- #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
- #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
- #==========#
- # 設定 #
- #==========#
- options:
- prefix: &7&l[&4AntiSpam&7&l]&r
- 警告文[chat]: &c連続でチャットをすることは出来ません!
- 警告文[command]: &c連続でコマンドを実行することは出来ません!
- クールダウン[chat]: 2 second
- クールダウン[command]: 2 second
- #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
- #==========#
- # コード #
- #==========#
- on join:
- set {%player%cooldwon-chat} to now
- set {%player%cooldwon-command} to now
- on chat:
- difference between {%player%cooldwon-chat} and now is less than {@クールダウン[chat]}:
- cancel event
- send "{@prefix} {@警告文[chat]}" to player
- else:
- set {%player%cooldwon-chat} to now
- on command:
- difference between {%player%cooldwon-command} and now is less than {@クールダウン[command]}:
- cancel event
- send "{@prefix} {@警告文[command]}" to player
- else:
- set {%player%cooldwon-command} to now
- options:
- prefixs: &c[くじ] &r
- on rightclick holding paper:
- name of held item contains "&e宝くじ"
- remove 1 of held item from player
- add 20 to {bronze.elected}
- message "{@prefixs} 当選予定額のストック: &6%{bronze.elected}% 円"
- chance of 1%:
- broadcast "{@prefixs} §r %player% §cさんが§b§n[宝くじ]§r§cを当選しました"
- broadcast "{@prefixs} §r %player% の当選額: &e&l %{bronze.elected}% 円"
- add {bronze.elected} to player's balance
- set {bronze.elected} to 10000
- # __________________________________________________________
- # / / / /\ \
- # \_\___________________________________________________\_\/ /
- # / / _____ __ __ / /
- # / / / ____\ / / /_/ /\ / /
- # / / / /__ / /___ ___ __ ______ __/ /_ / /
- # / / \___ \ / __/ / __\ / / / __ //_ __/ / /
- # / / ____/ / / /\ \ / / / / / /_/ / / / / /
- # / / \_____/ /_/ /_/ /_/ /_/ / ____/ /_/ / /__
- # / / ========================== / / ========== / / \ \
- # | | /_/ | | | |
- # \_\_________________________________________________\_\_/_/
- # CommandSpy By Yopon
- # Discord : https://discord.gg/MgRVHPW
- # YouTube : https://www.youtube.com/channel/UCuLa31NHlLwiQz0cW7T60fQ
- # Twitter : https://twitter.com/Yopon100
- options:
- enabledmsg: &a CommandSpy が有効になりました。
- disablemsg: &a CommandSpy が無効になりました。
- permission: admins.cmdspy
- prefix: &6[&dCmdSpy&6]&a
- cmdspy: &6&l%player%&f: &e/%full command%
- command /cmdspy:
- aliases: commandspy
- trigger:
- if player has permission "{@permission}":
- if {cmdspy::%player%} is not set:
- set {cmdspy::%player%} to true
- send "{@prefix} {@enabledmsg}"
- else:
- delete {cmdspy::%player%}
- send "{@prefix} {@disablemsg}"
- on command:
- player is online
- loop all players:
- {cmdspy::%loop-player%} is true
- if player is op:
- send "{@prefix} {@cmdspy}" to loop-player
- else:
- send "{@prefix} {@cmdspy}" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement