Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintainance for 1.16 #73

Open
wants to merge 19 commits into
base: devel
Choose a base branch
from
Open

Maintainance for 1.16 #73

wants to merge 19 commits into from

Conversation

LazyGon
Copy link

@LazyGon LazyGon commented Apr 22, 2020

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

@WhiTe-Yak
Copy link

Update to 1.16.4?

@LazyGon
Copy link
Author

LazyGon commented Nov 6, 2020

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 LazyGon changed the title Maintainance for 1.15 Maintainance for 1.16 Nov 6, 2020
@jjcf89
Copy link

jjcf89 commented Nov 12, 2020

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
Copy link

jjcf89 commented Nov 16, 2020

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

@LazyGon
Copy link
Author

LazyGon commented Nov 17, 2020

@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.

@jjcf89
Copy link

jjcf89 commented Nov 17, 2020 via email

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.

5 participants