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

[1.16.3] Make custom join Messages


Recommended Posts

Hi,

i am trying to make custom join messages when players join the server.
I tried using the PlayerLoggedInEvent but there seems to be no way to alter the Joinmessage.
When disallowing the event the message still gets sent. So i'm guessing the message is not part of that event.

Does someone know a way of changing the join message?

Link to post
Share on other sites

PlayerLoggedInEvent is not even cancellable...

There is no way to alter the join message server side. For the client you could either just make a resource pack and change the multiplayer.player.joined and multiplayer.player.joined.renamed language keys or catch ClientChatReceivedEvent.

Link to post
Share on other sites

I was saying use the ClientChatReceivedEvent event, but I have a doubt: if a Player send the same exact message what would happen? How can you tell if the message has been sent from a player or not?

Edited by JimiIT92
misspell

Don't blame me if i always ask for your help. I just want to learn to be better :)

Link to post
Share on other sites
1 hour ago, diesieben07 said:

PlayerLoggedInEvent is not even cancellable...

No, it doesn't. I've been using setResult() but it seems that it has no effect in that event.
 

 

1 hour ago, diesieben07 said:

There is no way to alter the join message server side. For the client you could either just make a resource pack and change the multiplayer.player.joined and multiplayer.player.joined.renamed language keys or catch ClientChatReceivedEvent.

Ok thats unfortunate. Is there any chance i could remove the message completely?

 

1 hour ago, JimiIT92 said:

I was saying use the ClientChatReceivedEvent event, but I have a doubt: if a Player send the same exact message what would happen? How can you tell if the message has been sent from a player or not?

Yeah, maybe i'll use something like that as a workaround if i don't find any solution.


Thank you both for your help :)

Link to post
Share on other sites
1 hour ago, JimiIT92 said:

I was saying use the ClientChatReceivedEvent event, but I have a doubt: if a Player send the same exact message what would happen? How can you tell if the message has been sent from a player or not?

You can detect a TranslationTextComponent with the specific translation key being sent, I would say that is pretty fool-proof.

 

8 minutes ago, letsFex said:

Is there any chance i could remove the message completely?

Not on the server. 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.



×
×
  • Create New...

Important Information

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