Jump to content

[1.7.10] How to write and read a String Array to ByteBuf?


HappyKiller1O1

Recommended Posts

Hey! So, I need to basically write a given string array (just the player list) to ByteBuf while sending a packet. But honestly, I have no clue how to. xD Any suggestions?

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

Now see, I would do that but, I am using a String array to store about ten or twenty messages to be sent to the server.

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

Actually I did it by running a for loop through the String[] length and saving each string. :P Thanks for the suggestions though!

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.