@JB940’s suggestion worked for me. Putting the call to recalibratePlayers(player.getChannel(), ...) inside an anonymous function when adding the event listener passes the current status of the player. Thanks for all your help!
@JB940’s suggestion worked for me. Putting the call to recalibratePlayers(player.getChannel(), ...) inside an anonymous function when adding the event listener passes the current status of the player. Thanks for all your help!