Creeperface01 / Nukkit

Nukkit is a Nuclear-Powered Server Software For Minecraft: Pocket Edition
https://nukkit.io
GNU General Public License v3.0
15 stars 5 forks source link

lower version join problem #32

Closed ghost closed 7 years ago

ghost commented 7 years ago

When the lower version join the server The resource package is being synchronized with the server instead of reminding the client version to be too low

18:59:52 [INFO] [/**.217.*.:16994] 登出游戏,原因: client disconnect 19:00:25 [ALERT] com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 236 path $.[0] at com.google.gson.Gson.fromJson(Gson.java:829) at com.google.gson.Gson.fromJson(Gson.java:779) at com.google.gson.Gson.fromJson(Gson.java:728) at cn.nukkit.network.protocol.LoginPacket.decodeChainData(LoginPacket.java:56) at cn.nukkit.network.protocol.LoginPacket.decode(LoginPacket.java:42) at cn.nukkit.network.Network.processBatch(Network.java:145) at cn.nukkit.Player.handleDataPacket(Player.java:1975) at cn.nukkit.network.RakNetInterface.handleEncapsulated(RakNetInterface.java:157) at cn.nukkit.raknet.server.ServerHandler.handlePacket(ServerHandler.java:132) at cn.nukkit.network.RakNetInterface.process(RakNetInterface.java:66) at cn.nukkit.network.Network.processInterfaces(Network.java:75) at cn.nukkit.Server.tick(Server.java:990) at cn.nukkit.Server.tickProcessor(Server.java:799) at cn.nukkit.Server.start(Server.java:778) at cn.nukkit.Server.(Server.java:469) at cn.nukkit.Nukkit.main(Nukkit.java:68) Caused by: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 236 path $.[0] at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1573) at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1031) at com.google.gson.stream.JsonReader.nextString(JsonReader.java:827) at com.google.gson.internal.bind.TypeAdapters$13.read(TypeAdapters.java:360) at com.google.gson.internal.bind.TypeAdapters$13.read(TypeAdapters.java:348) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) at com.google.gson.Gson.fromJson(Gson.java:814) ... 15 more