Jump to content

Recommended Posts

Posted

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?

Posted (edited)

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 :)

Posted
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 :)

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.