Jump to content

PlayerJoinedServerEvent and PlayerLeftServerEvent


Nique84

Recommended Posts

I would like to see 2 (simple) event hooks that allow modders to adjust the hardcoded (yellow) colored "player joined the Game" and "player left the game" messages that are broadcasted serverwide once a player joins or leaves the server (not just the world).

 

Sadly enough these messages are send from the deep. As of version 1.8, the join message is being send from the initializeConnectionToPlayer() function in the ServerConfigurationManager class (the message is being send on line 171). The leave message is being send from the onDisconnect() function in the NetHandlerPlayServer class (line 732).

 

If we could hook up there and adjust the message, it would be great.

 

Currently, the only way to change this behavior is to intercept the Netty packages before they get send, or catch them on the client and then adjust them. Both are nasty, the later requires the user to install a 'server' mod on the client. That's kinda awkward.

Link to comment
Share on other sites

Full control over server/chat messages. Except for those two messages, we already have full control.

 

Can be handy if a server owner wants to tidy up the chat with his own styles (color, text, format).

 

For example: Messages like:

[-] Username (left the server), 
[+] Username (entered server), 
[>] Username (left world), 
[<] Username (entered world) 

 

We were able to do this with bukkit plugins but bukkit is gone.

Link to comment
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.
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.