Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on chat:
- first 1 characters of message is "@"
- if {MentionCooltime::%player%} < 0:
- if message contains "@everyone" or "@here":
- set message to "&l%message%"
- wait 1 tick
- loop all players:
- {mute::%loop-player%} isn't true
- play sound "BLOCK_ANVIL_PLACE" to player with volume 1 and pitch 1
- set {MentionCooltime::%player%} to 60
- else if first 8 characters of message is "@someone":
- set {_text} to subtext of message from characters 10 to length of message
- set {_someone} to random player out of all players
- if {_text} isn't set:
- set {_text} to ""
- set message to "&7&l@%{_someone}%&r %{_text}%"
- wait 1 tick
- if {mute::%{_someone}%} isn't true:
- play sound "BLOCK_ANVIL_PLACE" to {_someone} with volume 1 and pitch 1
- set {MentionCooltime::%player%} to 0
- else:
- set {_loop} to 0
- loop 200 times:
- set {_loop} to {_loop} + 1
- subtext of message from characters {_loop} to {_loop} is " "
- exit this loop
- set {_loop} to {_loop} - 1
- set {_name} to subtext of message from characters 2 to {_loop}
- wait 1 tick
- message "&7[Mention]%{_name}%にメンションを送りました。"
- if {mute::%{_name}%} isn't true:
- play sound "BLOCK_ANVIL_PLACE" to {_name} parsed as player with volume 1 and pitch 1
- set {MentionCooltime::%player%} to 0
- else:
- message "&7[Mention]クールダウン中です!あと%{MentionCooltime::%player%}%秒"
- command /mutemention:
- trigger:
- if {mute::%player%} is true:
- set {mute::%player%} to false
- message "&7[Mention]メンションのミュートをやめました。"
- else:
- set {mute::%player%} to true
- message "&7[Mention]メンションをミュートしました。解除にはもう一度このコマンドを入力してください。"
- every second:
- loop all players:
- set {MentionCooltime::%loop-player%} to {MentionCooltime::%loop-player%} - 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement