Minecraft fake demo popup? [closed]

I was bored, and started to watch random Minecraft videos. I happened to stumble upon this video. How do you do this? Is this a command, plugin, datapack, or something else?


This is part of a trolling plugin. You can see the command he runs before the GUI appears, '/troll badboyhalo demomenu'