mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 10:12:06 -07:00
Added ability to disable the join/leave notices by setting the message to null in the event. The join message is moved to the onJoinEvent rather than during login
This commit is contained in:
@@ -90,7 +90,10 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
// Send the possibly modified leave message
|
||||
this.b.a((Packet) (new Packet255KickDisconnect( event.getReason() )));
|
||||
this.b.c();
|
||||
this.d.f.a((Packet) (new Packet3Chat( event.getLeaveMessage() )));
|
||||
leaveMessage = event.getLeaveMessage();
|
||||
if (leaveMessage != null) {
|
||||
this.d.f.a((Packet) (new Packet3Chat(leaveMessage)));
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
this.d.f.c(this.e);
|
||||
|
Reference in New Issue
Block a user