Hey, How to do that if the arg-1 quit it will clear the replay.
[doublepost=1553993770,1553966581][/doublepost]up
Code:
command /msg [<offlineplayer>] [<text>]:
aliases: /w, /m, /t, /pm, /tell, /whisper, /message
trigger:
if arg 1 is not set:
send "&cYou must type a specific player."
stop
if arg 1 is set:
if arg 1 is not online:
send "&c%arg 1% is not online!"
stop
if arg 1 is player:
send "&cYou cannot send a message to yourself!"
stop
if arg 2 is not set:
send "&cYou must type a specific message."
stop
if arg 2 is set:
if {pmblock.%arg-1%} is set:
send "&c%arg-1% has his messages disabled."
stop
if {pmblock.%arg-1%} is not set:
set {reply.%player%} to arg 1
set {reply.%arg 1%} to player
send "&7(To %colored prefix of arg-1%%arg 1%&7) %arg 2%"
send "&7(From %colored prefix of player%%player%&7) %arg 2%" to arg 1
command /r [<text>]:
aliases: reply
trigger:
if arg 1 is not set:
send "&cYou must type a specific message."
stop
if arg 1 is set:
if {reply.%player%} is not set:
send "&cSorry but you do not have any correspondent!"
stop
if {reply.%player%} is not online:
send "&c%{reply.%player%}% is not online!"
stop
if {pmblock.%{reply.%player%}%} is set:
send "&c%{reply.%player%}% has his messages disabled."
stop
if {reply.%player%} is set:
if {reply.%player%} is online:
set {reply.%{reply.%player%}%} to player
send "&7(To %colored prefix of {reply.%player%}%%{reply.%player%}%&7) %arg 1%"
send "&7(From %colored prefix of player%%player%&7) %arg 1%" to {reply.%player%}
else:
send "&c%{reply.%player%}% is not online!"
stop