Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
a2de0e23
Commit
a2de0e23
authored
Jun 18, 2022
by
Yazawazi
Committed by
Melledy
Jun 17, 2022
Browse files
no more bin
parent
3ccaf535
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerTokenRsp.java
View file @
a2de0e23
package
emu.grasscutter.server.packet.send
;
import
java.util.Base64
;
import
com.google.protobuf.ByteString
;
import
emu.grasscutter.net.packet.BasePacket
;
...
...
@@ -18,13 +16,11 @@ public class PacketGetPlayerTokenRsp extends BasePacket {
this
.
setUseDispatchKey
(
true
);
if
(
session
.
getPlayer
().
getAccount
().
isBanned
())
{
byte
[]
bin
=
Base64
.
getDecoder
().
decode
(
"5LiN54ixIEdDIOWNgeW5tOS6hu+8jOWNgeW5tOmHjOeUqOi/h+eahOavj+S4gOS4qiBQUyDpg73lg48gR0PjgII="
);
GetPlayerTokenRsp
p
=
GetPlayerTokenRsp
.
newBuilder
()
.
setUid
(
session
.
getPlayer
().
getUid
())
.
setIsProficientPlayer
(
session
.
getPlayer
().
getAvatars
().
getAvatarCount
()
>
0
)
.
setRetcode
(
21
)
.
setExtraBinData
(
ByteString
.
copyFrom
(
bin
))
.
setMsg
(
"FORBID_CHEATING_PLUGINS"
)
.
setBlackUidEndTime
(
session
.
getPlayer
().
getAccount
().
getBanEndTime
())
.
setRegPlatform
(
3
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment