Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- if {advc.toggle.hey} is not set:
- set {advc.toggle.hey} to 0
- command /advc [<text>] [<integer>]:
- permission: advc.advc
- trigger:
- if arg 1 is "hey":
- if arg 2 is 0 or 1:
- set {advc.toggle.hey} to arg 2
- else:
- message "&9/advc hey &c0 &7... オフ"
- message "&9/advc hey &c1 &7... オン"
- else if arg 1 is "mention":
- if arg 2 is 0 or 1 or 2:
- set {advc.toggle.mention} to arg 2
- else:
- message "&9/advc mention &c0 &7... オフ"
- message "&9/advc mention &c1 &7... オン(音なし)"
- message "&9/advc mention &c2 &7... オン(音あり)"
- else:
- message "&9/advc &chey &7... /hey の設定"
- message "&9/advc &cmention &7... @xxx(メンション)の設定"
- command /hey <player>:
- trigger:
- if {advc.toggle.hey} is 0:
- message "&c/hey は無効になっています"
- stop
- set {hey::%arg 1%} to true
- message "&c&lHey! &7%player%さんに呼び出しされました" to arg 1
- message "&7動くとアラームは止まります" to arg 1
- message "&a%arg 1%さんを呼び出しました"
- while {hey::%arg 1%} is set:
- loop 7 times:
- command "execute %arg 1% ~ ~ ~ playsound minecraft:block.note.pling master @s ~ ~ ~ 1.0 1.5"
- wait 2 tick
- wait 7 tick
- on any movement:
- clear {hey::%player%}
- on chat:
- {advc.toggle.mention} > 0
- if message contains "@":
- set {_message::*} to message split by " "
- loop {_message::*}:
- if first character of loop-value is "@":
- set {_mention::*} to loop-value parsed as "@%player%"
- {_mention::1} is set
- replace all loop-value with "&b&l%loop-value%&r" in message
- wait a tick
- message "&e&l%player% &6Send Mention" to {_mention::1}
- {advc.toggle.mention} is 2
- command "execute %{_mention::1}% ~ ~ ~ playsound minecraft:block.anvil.place master @s"
Add Comment
Please, Sign In to add comment