From d603681355723a85cb8db23b73d2996ff551a880 Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Tue, 19 Apr 2022 19:45:39 +0200 Subject: [PATCH] Try PlayerTokenRsp instead of LoginRsp --- src/main/java/emu/grasscutter/commands/PlayerCommands.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/commands/PlayerCommands.java b/src/main/java/emu/grasscutter/commands/PlayerCommands.java index 57976381a..0a84b5424 100644 --- a/src/main/java/emu/grasscutter/commands/PlayerCommands.java +++ b/src/main/java/emu/grasscutter/commands/PlayerCommands.java @@ -20,6 +20,7 @@ import emu.grasscutter.game.props.ActionReason; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.game.props.PlayerProperty; import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify; +import emu.grasscutter.server.packet.send.PacketGetPlayerTokenRsp; import emu.grasscutter.server.packet.send.PacketItemAddHintNotify; import emu.grasscutter.server.packet.send.PacketPlayerLoginRsp; import emu.grasscutter.utils.Position; @@ -544,7 +545,8 @@ public final class PlayerCommands { @Override public void execute(GenshinPlayer player, List args) { - player.getSession().close(); + // player.getSession().close(); + player.getSession().send(new PacketGetPlayerTokenRsp(player.getSession(), true)); } } }