Commit d6036813 authored by memetrollsXD's avatar memetrollsXD
Browse files

Try PlayerTokenRsp instead of LoginRsp

parent 657ac2e5
...@@ -20,6 +20,7 @@ import emu.grasscutter.game.props.ActionReason; ...@@ -20,6 +20,7 @@ import emu.grasscutter.game.props.ActionReason;
import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.game.props.FightProperty;
import emu.grasscutter.game.props.PlayerProperty; import emu.grasscutter.game.props.PlayerProperty;
import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify; 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.PacketItemAddHintNotify;
import emu.grasscutter.server.packet.send.PacketPlayerLoginRsp; import emu.grasscutter.server.packet.send.PacketPlayerLoginRsp;
import emu.grasscutter.utils.Position; import emu.grasscutter.utils.Position;
...@@ -544,7 +545,8 @@ public final class PlayerCommands { ...@@ -544,7 +545,8 @@ public final class PlayerCommands {
@Override @Override
public void execute(GenshinPlayer player, List<String> args) { public void execute(GenshinPlayer player, List<String> args) {
player.getSession().close(); // player.getSession().close();
player.getSession().send(new PacketGetPlayerTokenRsp(player.getSession(), true));
} }
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment