Create a Minecraft plugin for Spigot or Paper. Players spawn in a hub world called hub_world. When players join or respawn they get a compass. Right click the compass to open a server selection menu. The menu has two options. A campfire item named Normal Server. A diamond block item named Scripting Server. The menu must be locked so players cannot move items or take items. The compass must not be droppable and cannot be moved in the inventory. When a player clicks Normal Server they are teleported to the spawn of normal_world. When a player clicks Scripting Server they are teleported to the spawn of script_world. Show a message when teleporting. Entering Normal Server for normal_world. Entering Scripting Server for script_world. There are separate world groups. The hub world is hub_world. The normal server has normal_world normal_nether and normal_end. The scripting server has script_world script_nether and script_end. Each world group must be completely separate. Players must have separate inventories for each group. hub_world has its own inventory. normal worlds share one inventory. scripting worlds share one inventory. When a player switches between groups their inventory is saved and the correct one is loaded. Make sure teleportation is safe and players spawn at the world spawn location.