Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- permission: 454dw65a46dwa
- menotied color: &c
- sound: entity.player.levelup
- on chat:
- set {_players::*} to all players
- set {_contains} to ifcontains({_players::*}, message, player)
- if {_contains} is "true":
- if player != {chatmention.player.menotied::%player%}:
- if player doesn't have permission "{@permission}":
- replace "%{chatmention.player.menotied::%player%}%" with "{@menotied color}%{chatmention.player.menotied::%player%}%&7" in message
- play sound "{@sound}" with volume 1 and pitch 1 at {chatmention.player.menotied::%player%} for {chatmention.player.menotied::%player%}
- delete {chatmention.player.menotied::%player%}
- else:
- replace "%{chatmention.player.menotied::%player%}%" with "{@menotied color}%{chatmention.player.menotied::%player%}%&f" in message
- play sound "{@sound}" with volume 1 and pitch 1 at {chatmention.player.menotied::%player%} for {chatmention.player.menotied::%player%}
- delete {chatmention.player.menotied::%player%}
- function ifcontains(p: objects, c: text, currp: player) :: text:
- set {_cont} to "false"
- loop {_p::*}:
- if {_c} contains "%loop-value%":
- set {_cont} to "true"
- set {chatmention.player.menotied::%{_currp}%} to loop-value
- return {_cont}
- stop trigger
- return {_cont}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement