mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-27 13:05:38 +08:00
Logout immediately
This commit is contained in:
parent
7616e90426
commit
3e64aefbc0
@ -1,5 +1,6 @@
|
||||
package emu.grasscutter.server.packet.recv;
|
||||
|
||||
import emu.grasscutter.net.packet.BasePacket;
|
||||
import emu.grasscutter.net.packet.Opcodes;
|
||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
||||
import emu.grasscutter.net.packet.PacketHandler;
|
||||
@ -10,5 +11,7 @@ public class HandlerPlayerForceExitReq extends PacketHandler {
|
||||
@Override
|
||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
||||
// Client should auto disconnect right now
|
||||
session.send(new BasePacket(PacketOpcodes.PlayerForceExitRsp));
|
||||
session.getPlayer().onLogout();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user