[单机电脑游戏] 我的世界服务器启动失败

[复制链接]
查看69 | 回复0 | 2022-1-18 18:02 | 显示全部楼层 |阅读模式
问题:
我的世界服务器启动失败


PS C:\Users\Administrator\Desktop\Server> java -Xmx1024M -Xms1024M -jar server.jar nogui
[15:41:01] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[15:41:02] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[15:41:02] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[15:41:02] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[15:41:02] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[15:41:02] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[15:41:02] [main/INFO]: Reloading ResourceManager: Default
[15:41:03] [Worker-Main-13/INFO]: Loaded 7 recipes
[15:41:03] [Worker-Main-13/INFO]: Loaded 927 advancements
[15:41:05] [Server thread/INFO]: Starting minecraft server version 1.16.5
[15:41:05] [Server thread/INFO]: Loading properties
[15:41:05] [Server thread/INFO]: Default game type: SURVIVAL
[15:41:05] [Server thread/INFO]: Generating keypair
[15:41:05] [Server thread/INFO]: Starting Minecraft server on *:25565
[15:41:05] [Server thread/INFO]: Using default channel type
[15:41:08] [Server thread/ERROR]: Encountered an unexpected exception
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected value at line 2 column 3 path $
        at com.google.gson.Gson.fromJson(Gson.java:902) ~[server.jar:?]
        at com.google.gson.Gson.fromJson(Gson.java:825) ~[server.jar:?]
        at acy.f(SourceFile:118) ~[server.jar:?]
        at zf.y(SourceFile:95) ~[server.jar:?]
        at zf.<init>(SourceFile:22) ~[server.jar:?]
        at zg.d(SourceFile:169) ~[server.jar:?]
        at net.minecraft.server.MinecraftServer.w(SourceFile:645) ~[server.jar:?]
        at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[server.jar:?]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_281]
Caused by: com.google.gson.stream.MalformedJsonException: Expected value at line 2 column 3 path $
        at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559) ~[server.jar:?]
        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:590) ~[server.jar:?]
        at com.google.gson.stream.JsonReader.peek(JsonReader.java:425) ~[server.jar:?]
        at com.google.gson.Gson.fromJson(Gson.java:883) ~[server.jar:?]
        ... 8 more
[15:41:08] [Server thread/ERROR]: This crash report has been saved to: C:\Users\Administrator\Desktop\Server\.\crash-reports\crash-2021-05-16_15.41.08-server.txt
[15:41:08] [Server thread/INFO]: Stopping server
[15:41:08] [Server thread/INFO]: Saving worlds
[15:41:08] [Server thread/ERROR]: Exception stopping the server
java.lang.NullPointerException: null
        at net.minecraft.server.MinecraftServer.a(SourceFile:572) ~[server.jar:?]
        at net.minecraft.server.MinecraftServer.t(SourceFile:599) ~[server.jar:?]
        at zg.t(SourceFile:567) ~[server.jar:?]
        at net.minecraft.server.MinecraftServer.w(SourceFile:707) ~[server.jar:?]
        at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[server.jar:?]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_281]
PS C:\Users\Administrator\Desktop\Server>
大佬们帮帮忙




推荐答案:
我的世界服务器启动失败无法上图
将软件上传到服务器上的安装目录,第一次运行官方服务端核心java -jar minecraft-1.15.2-server.jar按照惯例,第一次肯定失败,需要修改eula.txt文件的eula=true

修改完成后,第二次运行官方服务端核心
这一次直接可以加上参数运行,等待启动完成,出现Done字样就可以快乐玩耍了。
【玉璞集 YUPUG.COM】