mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 21:47:39 +00:00
Kick player if they use an invalid resources folder
This commit is contained in:
parent
eaf0dd0b3b
commit
414fad9079
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user