mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-30 09:32:52 +00:00
no more bin
This commit is contained in:
parent
51df48ee14
commit
50f0a38e21
@ -1,7 +1,5 @@
|
|||||||
package emu.grasscutter.server.packet.send;
|
package emu.grasscutter.server.packet.send;
|
||||||
|
|
||||||
import java.util.Base64;
|
|
||||||
|
|
||||||
import com.google.protobuf.ByteString;
|
import com.google.protobuf.ByteString;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.BasePacket;
|
import emu.grasscutter.net.packet.BasePacket;
|
||||||
@ -18,13 +16,11 @@ public class PacketGetPlayerTokenRsp extends BasePacket {
|
|||||||
this.setUseDispatchKey(true);
|
this.setUseDispatchKey(true);
|
||||||
|
|
||||||
if (session.getPlayer().getAccount().isBanned()) {
|
if (session.getPlayer().getAccount().isBanned()) {
|
||||||
byte[] bin = Base64.getDecoder().decode("5LiN54ixIEdDIOWNgeW5tOS6hu+8jOWNgeW5tOmHjOeUqOi/h+eahOavj+S4gOS4qiBQUyDpg73lg48gR0PjgII=");
|
|
||||||
|
|
||||||
GetPlayerTokenRsp p = GetPlayerTokenRsp.newBuilder()
|
GetPlayerTokenRsp p = GetPlayerTokenRsp.newBuilder()
|
||||||
.setUid(session.getPlayer().getUid())
|
.setUid(session.getPlayer().getUid())
|
||||||
.setIsProficientPlayer(session.getPlayer().getAvatars().getAvatarCount() > 0)
|
.setIsProficientPlayer(session.getPlayer().getAvatars().getAvatarCount() > 0)
|
||||||
.setRetcode(21)
|
.setRetcode(21)
|
||||||
.setExtraBinData(ByteString.copyFrom(bin))
|
|
||||||
.setMsg("FORBID_CHEATING_PLUGINS")
|
.setMsg("FORBID_CHEATING_PLUGINS")
|
||||||
.setBlackUidEndTime(session.getPlayer().getAccount().getBanEndTime())
|
.setBlackUidEndTime(session.getPlayer().getAccount().getBanEndTime())
|
||||||
.setRegPlatform(3)
|
.setRegPlatform(3)
|
||||||
|
Loading…
Reference in New Issue
Block a user