When I join the queue it works perfectly fine, but when I try to leave the queue I can't. (There's no errors)
Code:
on inventory click:
if event-inventory = (metadata tag "queueGUI" of player):
cancel event
if index of event-slot is 11:
if {Queued::*} contains player:
send "&7You are already in a queue." to player
else:
if {Axe-Queue::*} contains player:
remove player from {Axe-Queue::*}
send "&7Removed you from &baxe &7queue."
else:
add player to {Axe-Queue::*}
add player to {Queued::*}
send "&7Added you to &baxe &7queue."
play sound "block.note_block.pling" at volume 1 and pitch 3 to player
#
else if index of event-slot is 13:
if {Queued::*} contains player:
send "&7You are already in a queue." to player
else:
if {Sword-Queue::*} contains player:
remove player from {Sword-Queue::*}
send "&7Removed you from &bsword &7queue."
else:
add player to {Sword-Queue::*}
add player to {Queued::*}
send "&7Added you to &bsword &7queue."
play sound "block.note_block.pling" at volume 1 and pitch 3 to player
#
else if index of event-slot is 15:
if {Queued::*} contains player:
send "&7You are already in a queue." to player
else:
if {Nethpot-Queue::*} contains player:
remove player from {Nethpot-Queue::*}
send "&7Removed you from &bnetherite pot &7queue."
else:
add player to {Nethpot-Queue::*}
add player to {Queued::*}
send "&7Added you to &bnetherite pot &7queue."
play sound "block.note_block.pling" at volume 1 and pitch 3 to player