Sorry if this is a really dumb question, I'm trying to get better at programming and the term 'packet' always comes up. I'm confused about what they are, what they do and couldn't seem to find anything on google relating to Bukkit development so I was wondering if someone wiser than I could quickly summarise what they are and what they are used for? P.S: If anyone wants to be really helpful, tell me how you learnt programming or if you know any good online courses on Java or just programming in general that will help me get better at this stuff
Its what tim says. When your character moves, your client sends all kinds of movement packets to the server. The server verifies your position and sends a bunch of packets back. Generally, there's a packet for everything. Connecting, disconnecting, movement, attacking, etc. These are the kinds of packets but they can each have different properties.