AutoSaveWorld
AutoSaveWorld copied to clipboard
Possible fix for 1.13
It appears that saveLevel()
is absent from WorldServer.java
in 1.13. All I've done is take what saveLevel()
was doing which is this.dataManager.a()
and have the reflection util get the dataManager object and invoke the a()
method on it.
I am of course very new to reflection but after some basic testing, I am no longer getting any errors in console. I hope I've called everything correctly and this results in proper saving. Please advise!
I hate to ask but can you provide a compiled version with this change for 1.13? I'd really appreciate it.
Sure. Here's the version I was using on my server. I actually learned that with Paper, it's easier to rely on the built in saving mechanics and just use a shell script to back up worlds which is what I switched to just a few weeks ago.
Here's the link: https://mega.nz/#!hkUiSaJa!nZvjVV8VUjvEg2upVCVw4aQS2ezG73mgPdgbQVdGRFo
I've gotten comfortable using autosaveworld for backing up worlds, plugins, and reboot the server at midnight / off hours for years now otherwise I'd probably consider a shell script at server startup. Regardless, thank you so much.
This fix works. The annoying console-spam message is gone! Thank you,
Here's a version that appears to be working for 1.14.3. Take the .txt
file extension off so it's recognized as a jar file.
AutoSaveWorld.jar.txt
This version should work for 1.14.4 with Google Drive support. I haven't tested this. AutoSaveWorld.jar.txt
Thanks @TheRandomLabs for the 1.14.4 fix. Do you have the source code, I'dd be interested in the changes you made.
You're welcome. I don't have the source anymore, but I'm pretty sure I just updated some method names. It was a simple fix.
Hi now i become this error: [AutoSaveWorld] Could not dump RegionFileCache java.lang.RuntimeException: Can't find method r with params length 0