The goal of this script is to let staff members toggle their silent join/leave function. When on, normal players will not be notified when staff members who have this toggled on join or leave. When off, it alerts everyone like every other player. I'm really not sure what's wrong with this. I think the fact that I haven't slept in 24 hours might be messing with my mental functionality. Thanks in advance 
Code:
on first join:
execute console command "/mvtp %player% Spawn"
execute console command "/warp rules %player%"
on join:
set join message to ""
wait 1 tick
send player title "&bVexel Games" with subtitle "Welcome back, %player%"
make player execute command "/motd"
set tab header to "{@bar}%nl%&bVexel Games" and footer to "&lVexelGames.mcpro.io%nl%&3» &7Balance &f/bal%nl%{@bar}" for player
{staffchat.%uuid of player%} is not set
set {staffchat.%uuid of player%} to false
on join:
if {_silentjoin::%player%} is false:
wait 1 tick
set join message to ""
broadcast "Hi %player%!!!"
stop
on quit:
if {_silentjoin::%player%} is false:
wait 1 tick
set quit message to ""
broadcast "Cya %player%!!!"
stop
command /silentjoin [<text>]:
aliases: /sj
permission: {@silentjoin}
permission message: "{@prefix} &cNo permission."
trigger:
send "Activated." to player #Testing purposes only.
if arg 1 is "on":
set {_silentjoin::%player%} to true
send "True %player%" to player
if arg 1 is "off":
set {_silentjoin::%player%} to false
send "False %player%" to player
else if arg 1 is not set:
if {_silentjoin::%player%} is false:
set {_silentjoin::%player%} to true
send "True and on" to player
else if {_silentjoin::%player%} is true:
set {_silentjoin::%player%} to false
send "False and off" to player
else:
send "{@prefix} &cUnknown argument"