This script adds a new command. /transferserver. its just like /transfer but you can use @p meaning you can, for example, set up a command block with a button and whoever presses the button gets sent to the hive
Feel free to leave a comment if something isnt working, in fact, leave a review in the comments.
the syntax is /transferserver <player> <ip adress> <port>
Credit to ChatGPT from OpenAI for helping me create the addon (by help i mean do 95% percent of the work. I have no idea how to code so huge thanks to ChatGPT)