create a minecraft item that has the following description: 'I need you to open a local server (let me pick the ip it binds to, usually 0.0.0.0) and the port, and accept requests to /whitelist.
in the body, it will have a username. then add him to a whitelist queue.
right when the user initiates a connection with the server, scan the whitelist queue and check for his username. if you find a username that matches in the queue immediately remove the username from the queue and let him join. if you DONT find any username that matches him in the queue, simply kick the user, and make the kick message customizable in the config. also, if it takes longer than 12 seconds for the person to join the server after being added to the queue, remove them from the queue. make sure multiple people can join the server without having issues.
let me set the ip binds to and the port in fabric mods config folder. name that config folder kickverifywhitelist
also make sure it supports version 1.20+
'