Forums Archived

This forum has been archived. No new posts can be made and no new users can sign up. It remains here for reference only.

Find the new forums here

Resourcepack in server.properties has wrong format

  • 134 Views
  • Last Post 02 January 2022
  • Topic Is Solved
webcraft posted this 01 January 2022

Hello, I get the following error on MC1.18.1: Apparently the string for the resource pack has to be saved with quotations in Minecraft's JSON format. e.g. {"text":"A resource pack is required to connect to this server.","color":"red"}

I can copy and paste this json into the field in the webinterface and then the error is gone but I'd be more convenient if AMP generates the json or at least provides a valid json by default.

Failed to parse resource pack prompt 'A resource pack is required to connect to this server.'
Console22:48:32

com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
at com.google.gson.internal.Streams.parse(Streams.java:60) ~[gson-2.8.8.jar:?]
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:65) ~[gson-2.8.8.jar:?]
at net.minecraft.util.ChatDeserializer.a(SourceFile:503) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3384-Spigot-78a14d9-b8a25cb]
at net.minecraft.util.ChatDeserializer.a(SourceFile:527) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3384-Spigot-78a14d9-b8a25cb]
at net.minecraft.network.chat.IChatBaseComponent$ChatSerializer.a(IChatBaseComponent.java:430) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3384-Spigot-78a14d9-b8a25cb]
at net.minecraft.server.dedicated.DedicatedServer.a(DedicatedServer.java:763) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3384-Spigot-78a14d9-b8a25cb]
at net.minecraft.server.dedicated.DedicatedServer.<init>(DedicatedServer.java:101) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3384-Spigot-78a14d9-b8a25cb]
at net.minecraft.server.Main.lambda$1(Main.java:232) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3384-Spigot-78a14d9-b8a25cb]
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:314) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3384-Spigot-78a14d9-b8a25cb]
at net.minecraft.server.Main.main(Main.java:231) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3384-Spigot-78a14d9-b8a25cb]
at org.bukkit.craftbukkit.Main.main(Main.java:206) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3384-Spigot-78a14d9-b8a25cb]
at org.bukkit.craftbukkit.bootstrap.Main.lambda$1(Main.java:61) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3384-Spigot-78a14d9-b8a25cb]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1562) ~[gson-2.8.8.jar:?]
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1403) ~[gson-2.8.8.jar:?]
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:592) ~[gson-2.8.8.jar:?]
at com.google.gson.stream.JsonReader.peek(JsonReader.java:424) ~[gson-2.8.8.jar:?]
at com.google.gson.internal.Streams.parse(Streams.java:46) ~[gson-2.8.8.jar:?]
... 12 more</init>

Mike posted this 02 January 2022

Corrected, this will appear in the next build.

Close