Jump to content

Recommended Posts

Posted

Hey,

I'm creating a serverside mod and I want to change the action bar text (like it was asked here:)

But the problem is that I am working serverside only, so I need a method that does that like a server plugin would do it. Is there any way to handle that? (Maybe with packets?)

 

Greetings,

blooditor

Posted (edited)

Thanks for the quick reply... unfortunately I'm not into packets in Forge and I can only find stuff about creating new ones... Can you give me some more hints?

Edited by blooditor
Posted

Okay I got it! Thanks a lot for the help!
If someone needs:
 

S02PacketChat packet = new S02PacketChat(new ChatComponentText(message), Byte.parseByte("2"));
player.playerNetServerHandler.sendPacket(packet);

 

Posted (edited)
11 minutes ago, diesieben07 said:

I really hope you are not serious about this.

Haha it worked and I was too lazy to remember how to do that normally^^

And yes I knew someone would kill me for that

Edited by blooditor

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

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