Hey, The togglemessages on Private messages are not working when im disabling my message the target can keep /replay me.
Code:
command /w [<offline player>] [<text>]:
aliases: /message, /pm, /m
trigger:
if arg 1 is not set:
send "&cYou must type a specify player."
stop
if arg 1 is set:
if arg 2 is not set:
send "&cYou must type a specify message."
stop
if arg 1 is online:
if arg 2 is set:
if {pmblock.%uuid of arg 1%} is set:
send "&c%arg-1%'s messages are disabled!"
stop
if {pmblock.%uuid of arg 1%} is not set:
set {chat.private.reply.%player%} to arg 1
set {chat.private.reply.%arg 1%} to player
send "&7(To %colored prefix of arg-1%%arg 1%&7) %arg 2%" to player
send "&7(From %colored prefix of player%%player%&7) %arg 2%" to arg 1
else:
send "&c%arg-1% is offline!"
command /reply [<text>]:
aliases: /r
trigger:
if arg 1 is not set:
send "&cYou must type a specify message."
stop
if arg 1 is set:
if {chat.private.reply.%player%} is online:
if {pmblock.%{chat.private.reply.%player%}%} is set:
send "&c%arg-1%'s messages are disabled!"
stop
if {pmblock.%{chat.private.reply.%player%}%} is not set:
send "&7(To %colored prefix of {chat.private.reply.%player%}%%{chat.private.reply.%player%}%&7) %arg 1%" to player
send "&7(From %colored prefix of player%%player%&7) %arg 1%" to {chat.private.reply.%player%}
stop
if {chat.private.reply.%player%} is not online:
send "&c%{chat.private.reply.%player%}% is offline!"
stop
command /togglemessages:
aliases: /togglepm, messages
trigger:
if {pmblock.%uuid of player%} is not set:
set {pmblock.%uuid of player%} to true
send "&cMessages has been disabled!"
stop
else if {pmblock.%uuid of player%} is true:
set {pmblock.%uuid of player%} to false
send "&aMessages has been enabled!"
stop
else if {pmblock.%uuid of player%} is false:
set {pmblock.%uuid of player%} to true
send "&cMessages has been disabled!"
stop