Just started modding less than a month ago and am trying to get networking down for 1.21. I've set up a serverside payload with the playC2S and global receivers registered.
The payload is sent via keybind on armor inventory tick, but when the button is pressed on a singleplayer world, this message pops up and I am disconnected and sent to the server list.
Will provide code below.