Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

New Tutorial: Advanced Packet Handling


Recommended Posts

  • 1 month later...

I don't see it in the tutorial list, it hasn't been added yet?

 

Shouldn't be in a section "Using the packets":

// Send to server
PacketDispatcher.sendPacketToServer(new TestPacket("Hello World!").makePacket());

// send to player
PacketDispatcher.sendPacketToPlayer(new TestPacket("Hello World!").makePacket(), (Player)player);

instead of

// Send to server
PacketDispatcher.sendPacketToServer(new DemoPacket("Hello World!").makePacket());

// send to player
PacketDispatcher.sendPacketToPlayer(new DemoPacket("Hello World!").makePacket(), (Player)player);

?

 

DemoPacket is the abstract one.

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

Link to comment
Share on other sites

I don't see it in the tutorial list, it hasn't been added yet?

I'm not in charge for that. If anyone wants to add it, go ahead :D

Shouldn't be in a section "Using the packets":

// Send to server
PacketDispatcher.sendPacketToServer(new TestPacket("Hello World!").makePacket());

// send to player
PacketDispatcher.sendPacketToPlayer(new TestPacket("Hello World!").makePacket(), (Player)player);

instead of

// Send to server
PacketDispatcher.sendPacketToServer(new DemoPacket("Hello World!").makePacket());

// send to player
PacketDispatcher.sendPacketToPlayer(new DemoPacket("Hello World!").makePacket(), (Player)player);

?

 

DemoPacket is the abstract one.

Oopsies. I'll change that, thank you!
Link to comment
Share on other sites

  • 1 year later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.