I have already troubleshoot the exact problem. If I edit my .dat file then the server doesn't start using the service. It looks that there is a controller somewhere that when reading the dat file when I launch the server finds a mismatch and stops the server. If I don't touch the file, even if the location of my player is 30000000, 2E+24, 30000000, the server runs fine. The solution I'm going to take it's stop using the official minecraft launcher aund start using another one so I can change my username and generate another .dat file. The server was already running on offline mode so it is not a problem.
You can use NBTExplorer program to open her .dat file in the folder world/playerdata/ and change her position in the world. You can find her .dat file using this page. Just type her username and it gives you her id.
I have a minecraft vanilla 1.14 java server on a CentOS machine. Until yesterday it was running perfectly but then a friend teleported me in game to a very far place (he wrote /tp and very very large numbers). Then the server crashed every time I tried to enter.
I downloaded the world, edited my player .dat file and put me in the spawn coordinates. When I uploaded the world again to the server it doesn't started automatically at the server pc startup like before and now it only works if I manually start it. I followed the guide of this page (the systemd part) but now if I try to start the server using the minecraft service that I have created it doesn't work until I try with another world.
It bothers me because if I start the server manually with the world that I was using it works fine but if I start it using the service it doesn't work until I change the world. This is the error message that I get from the service:
● minecraft.service - start and stop the minecraft-server Loaded: loaded (/etc/systemd/system/minecraft.service; enabled; vendor preset: disabled) Active: inactive (dead) since vie 2019-08-16 15:19:05 CEST; 16s ago Process: 24160 ExecStart=/usr/bin/java -Xms4G -Xmx10G -jar server.jar nogui (code=exited, status=0/SUCCESS) Main PID: 24160 (code=exited, status=0/SUCCESS)
ago 16 15:19:04 localhost.localdomain java[24160]: [15:19:04] [Server thread/INFO]: Stopping server ago 16 15:19:04 localhost.localdomain java[24160]: [15:19:04] [Server thread/INFO]: Saving players ago 16 15:19:04 localhost.localdomain java[24160]: [15:19:04] [Server thread/INFO]: Saving worlds ago 16 15:19:04 localhost.localdomain java[24160]: [15:19:04] [Server thread/ERROR]: Exception stopping the server ago 16 15:19:04 localhost.localdomain java[24160]: java.lang.NullPointerException: null ago 16 15:19:04 localhost.localdomain java[24160]: at net.minecraft.server.MinecraftServer.a(SourceFile:546) ~[server.jar:?] ago 16 15:19:04 localhost.localdomain java[24160]: at net.minecraft.server.MinecraftServer.m(SourceFile:574) ~[server.jar:?] ago 16 15:19:04 localhost.localdomain java[24160]: at uk.m(SourceFile:593) ~[server.jar:?] ago 16 15:19:04 localhost.localdomain java[24160]: at net.minecraft.server.MinecraftServer.run(SourceFile:676) [server.jar:?] ago 16 15:19:04 localhost.localdomain java[24160]: at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
I can't run the server manually because if I do that and then close the ssh session, the server stops. It has to be started on startup like before. "Screen" command also doesn't work for my machine, I don't know why.
Thank you very much for reading and sorry for my english!
0
I have already troubleshoot the exact problem. If I edit my .dat file then the server doesn't start using the service. It looks that there is a controller somewhere that when reading the dat file when I launch the server finds a mismatch and stops the server. If I don't touch the file, even if the location of my player is 30000000, 2E+24, 30000000, the server runs fine. The solution I'm going to take it's stop using the official minecraft launcher aund start using another one so I can change my username and generate another .dat file. The server was already running on offline mode so it is not a problem.
0
You can use NBTExplorer program to open her .dat file in the folder world/playerdata/ and change her position in the world. You can find her .dat file using this page. Just type her username and it gives you her id.
0
Hi everybody.
I have a minecraft vanilla 1.14 java server on a CentOS machine. Until yesterday it was running perfectly but then a friend teleported me in game to a very far place (he wrote /tp and very very large numbers). Then the server crashed every time I tried to enter.
I downloaded the world, edited my player .dat file and put me in the spawn coordinates. When I uploaded the world again to the server it doesn't started automatically at the server pc startup like before and now it only works if I manually start it. I followed the guide of this page (the systemd part) but now if I try to start the server using the minecraft service that I have created it doesn't work until I try with another world.
It bothers me because if I start the server manually with the world that I was using it works fine but if I start it using the service it doesn't work until I change the world. This is the error message that I get from the service:
● minecraft.service - start and stop the minecraft-server
Loaded: loaded (/etc/systemd/system/minecraft.service; enabled; vendor preset: disabled)
Active: inactive (dead) since vie 2019-08-16 15:19:05 CEST; 16s ago
Process: 24160 ExecStart=/usr/bin/java -Xms4G -Xmx10G -jar server.jar nogui (code=exited, status=0/SUCCESS)
Main PID: 24160 (code=exited, status=0/SUCCESS)
ago 16 15:19:04 localhost.localdomain java[24160]: [15:19:04] [Server thread/INFO]: Stopping server
ago 16 15:19:04 localhost.localdomain java[24160]: [15:19:04] [Server thread/INFO]: Saving players
ago 16 15:19:04 localhost.localdomain java[24160]: [15:19:04] [Server thread/INFO]: Saving worlds
ago 16 15:19:04 localhost.localdomain java[24160]: [15:19:04] [Server thread/ERROR]: Exception stopping the server
ago 16 15:19:04 localhost.localdomain java[24160]: java.lang.NullPointerException: null
ago 16 15:19:04 localhost.localdomain java[24160]: at net.minecraft.server.MinecraftServer.a(SourceFile:546) ~[server.jar:?]
ago 16 15:19:04 localhost.localdomain java[24160]: at net.minecraft.server.MinecraftServer.m(SourceFile:574) ~[server.jar:?]
ago 16 15:19:04 localhost.localdomain java[24160]: at uk.m(SourceFile:593) ~[server.jar:?]
ago 16 15:19:04 localhost.localdomain java[24160]: at net.minecraft.server.MinecraftServer.run(SourceFile:676) [server.jar:?]
ago 16 15:19:04 localhost.localdomain java[24160]: at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
I can't run the server manually because if I do that and then close the ssh session, the server stops. It has to be started on startup like before. "Screen" command also doesn't work for my machine, I don't know why.
Thank you very much for reading and sorry for my english!