AutoSaveWorld icon indicating copy to clipboard operation
AutoSaveWorld copied to clipboard

Maintainance for 1.16

Open LazyGon opened this issue 4 years ago • 6 comments

Project is changed to maven

Changed on this commit.

All other plugin dependency jars and zlibs classes are removed.

Those are written in maven pom.xml

Updated outdated api usage

Google Drive API:

  • Update way to authenticate.
  • Update query string syntax ("title" is changed to "name").

Dependency plugins:

This commit.

  • Replaced abandant plugins to maintained forks.
  • Change code to fit those forks.
  • If there is no maintained fork, search for latest maintained fork.
  • If original plugin is maintained, just update depending code.

Other

  • setLevel method is removed after 1.13. So, I commented out the exception stack trace about that.
  • Update deprecated code. (Using getDeclaredConstructor())

Build or download

To build, download all dependency plugins and put them in libs folder. See downloads.txt

To just use this build, get attached zip file below and rename AutoSaveWorld.jar.zip to AutoSaveWorld.jar AutoSaveWorld.jar.zip THIS IS FOR VERSION 1.15. YOU CAN DOWNLOAD NEWER VERSION BELOW

LazyGon avatar Apr 22 '20 20:04 LazyGon

Update to 1.16.4?

WhiTe-Yak avatar Nov 04 '20 12:11 WhiTe-Yak

Updated dependencies. I found some repo and dependencies that is unavailable in the past. Added them in pom.xml

To use new build, get jar from following link: AutoSaveWorld.jar.zip

If you get some errors on console, update dependencies. Servers using old Towny or PresiousStones may get errors. Otherwise, you can use 1.15 version on 1.16 server, I think.

Please comment error message and stack trace if you get errors after updating dependencies.

P.S Newer maintained PresiouStones is here (download link for 1.16).

LazyGon avatar Nov 06 '20 04:11 LazyGon

Thank you for posting a built version of your updated AutoSaveWorld plugin.

Just FYI for others, this build requires at least java 10 installed. My Windows machine only had java 8u271. So I downloaded and installed JDK 11 x64

https://www.codejava.net/java-se/download-and-install-java-11-openjdk-and-oracle-jdk

Note that Oracle JDK 11 does not update system environment variables, so you have to manually update PATH and/or JAVA_HOME after installation. Open Command Prompt window under administrator privilege and type the following command: setx -m JAVA_HOME "C:\Program Files\Java\jdk-11.0.7"

If the PATH environment variable does not contain an entry to JAVA_HOME\bin, type the following command: setx -m PATH "%JAVA_HOME%\bin;%PATH%"

Error message:

[11:20:59 ERROR]: Could not load 'plugins\AutoSaveWorld.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: autosaveworld/core/AutoSaveWorld has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0

jjcf89 avatar Nov 12 '20 16:11 jjcf89

Hmm ran into issue where the config file kept getting reset on load. Not sure why. Ended up switching to DriveBackup2

jjcf89 avatar Nov 16 '20 14:11 jjcf89

@jjcf89

Hmm ran into issue where the config file kept getting reset on load. Not sure why. Ended up switching to DriveBackup2

Because of this line, config files are overwritten on plugin disabling.

So if you edit config when server is running, your modification are cleared on disable. In the case, you should edit config with the server stopped.

This is upstream implementation, I did not touch anything about that.

If you are unsatisfied at DriveBackup2, try above solution.

LazyGon avatar Nov 17 '20 05:11 LazyGon

I see thanks for looking into it

On Tue, Nov 17, 2020, 12:12 AM 怠惰 [email protected] wrote:

@jjcf89 https://github.com/jjcf89

Hmm ran into issue where the config file kept getting reset on load. Not sure why. Ended up switching to DriveBackup2

Because of this line https://github.com/LazyGon/AutoSaveWorld/blob/devel/src/main/java/autosaveworld/core/AutoSaveWorld.java#L159, config files are overwritten on plugin disabling.

So if you edit config when server is running, your modification are cleared on disable. In the case, you should edit config with the server stopped.

This is upstream implementation, I did not touch anything about that.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Shevchik/AutoSaveWorld/pull/73#issuecomment-728690344, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE6IXSE6LEX6WHO2UEKYPLSQIA35ANCNFSM4MOPZGLA .

jjcf89 avatar Nov 17 '20 14:11 jjcf89