Varijon Posted January 6, 2017 Posted January 6, 2017 I've been in the process of porting my server sided mod from 1.8.9 to 1.10.2. There's just one thing I haven't been able to figure out, tried all sorts of searches, but couldn't find anything about it. In 1.8.9 I was sending a vanilla packet to individual players, a Title packet, which now goes by the name of "SPacketTitle". I was achieving this with the EntityPlayerMP playerNetServerHandler.sendPacket(packet). However, this method no longer exists and I can't seem to figure out the alternative. I've seen SimpleImpl, but I think this is only for custom packets? I also saw a "getPlayerList().sendPacketToAllPlayers(packet)" method in PlayerList, but this sends it to every player. My question is, what is the proper way to send a vanilla Title packet to an individual player? Quote
Draco18s Posted January 6, 2017 Posted January 6, 2017 Look for all existing usages of SPacketTitle and take a looksee where it's used. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Animefan8888 Posted January 6, 2017 Posted January 6, 2017 EntityPlayerMP player.... player.connection.sendPacket(packetIn); Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Varijon Posted January 6, 2017 Author Posted January 6, 2017 EntityPlayerMP player.... player.connection.sendPacket(packetIn); Ahh, totally overlooked that, thank you for the quick solution! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.