The actual scripting of such a GUI would depend on the game server software and the scripting language it supports. For Minecraft servers, popular choices include: