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
a045142a
Commit
a045142a
authored
May 05, 2022
by
Melledy
Browse files
Kick player if they use an invalid resources folder
parent
b2955274
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java
View file @
a045142a
...
...
@@ -37,6 +37,13 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler {
return
;
}
// Make sure resources folder is set
if
(!
GameData
.
getAvatarDataMap
().
containsKey
(
avatarId
))
{
Grasscutter
.
getLogger
().
error
(
"No avatar data found! Please check your ExcelBinOutput folder."
);
session
.
close
();
return
;
}
String
nickname
=
req
.
getNickName
();
if
(
nickname
==
null
)
{
nickname
=
"Traveler"
;
...
...
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