Skip to content

Conversation

@mattboy9921
Copy link

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!

@MarkElf
Copy link

MarkElf commented Nov 27, 2018

I hate to ask but can you provide a compiled version with this change for 1.13? I'd really appreciate it.

@mattboy9921
Copy link
Author

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

@MarkElf
Copy link

MarkElf commented Nov 27, 2018

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.

@encode42
Copy link

encode42 commented Mar 7, 2019

This fix works. The annoying console-spam message is gone! Thank you,

@TheRandomLabs
Copy link

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

@TheRandomLabs
Copy link

This version should work for 1.14.4 with Google Drive support. I haven't tested this.
AutoSaveWorld.jar.txt

@J0B10
Copy link

J0B10 commented Nov 4, 2019

Thanks @TheRandomLabs for the 1.14.4 fix. Do you have the source code, I'dd be interested in the changes you made.

@TheRandomLabs
Copy link

TheRandomLabs commented Nov 5, 2019 via email

@xazes
Copy link

xazes commented Nov 28, 2019

Hi
now i become this error:
[AutoSaveWorld] Could not dump RegionFileCache
java.lang.RuntimeException: Can't find method r with params length 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants