mrtronman / amend Goto Github PK
View Code? Open in Web Editor NEWA plugin that auto updates purpur or paper to the newest version based on the Minecraft version.
Home Page: https://amend.mrtron.dev
License: Apache License 2.0
A plugin that auto updates purpur or paper to the newest version based on the Minecraft version.
Home Page: https://amend.mrtron.dev
License: Apache License 2.0
Describe the problem
Amend insists it's not up to date when it is and keeps redownloading even though the server is up to date.
To Reproduce
Steps to reproduce the behavior:
Info:
[22:08:36 WARN]: [Amend] -------------------------------
[22:08:36 INFO]: [Amend] Amend
[22:08:36 INFO]: [Amend] Server-Type Selected: PURPUR
[22:08:36 INFO]: [Amend] Current Version: 1949 (MC: 1.19.4)
[22:08:36 WARN]: [Amend] Version is NOT up to date! Newest PURPUR version is 1949
[22:08:36 INFO]: [Amend] Downloading update and applying to purpurclip.jar...
[22:08:47 INFO]: [Amend] Update Completed!
[22:08:47 WARN]: [Amend] -------------------------------
Version of MC: 1.19.4
Version of Amend: 1.6--V.1.19.4
Server-Type: PURPUR
Host (if there is any): {HOST OR N/A}
Additional content
...
Describe the problem
Amend downloads "newer" version despite running the latest server version
Similar to issue: #6
To Reproduce
Steps to reproduce the behavior:
Info:
Please add the following info below so I can have an understanding.
Version of MC: 1.20.6
Version of Amend: 1.7.4--V1.20.6
Server-Type: PURPUR
Host (if there is any): {HOST OR N/A}
Additional content
Log:
</details>
[22:15:07 INFO]: [Amend] Loading server plugin Amend v1.7.4--V.1.20.6
[22:15:07 INFO]: [Amend] Enabling Amend v1.7.4--V.1.20.6
[22:15:07 INFO]: [Amend] Amend is on standby, ready for updates on shutdown.
[22:15:07 INFO]: [PlugMan] Amend has been loaded and enabled.
[22:15:07 INFO]: [Amend] You are using the latest version of Amend.
ver
[22:15:12 INFO]: Checking version, please wait...
[22:15:12 INFO]: Current Purpur Version: 1.20.6-2218-ec1b4fa (MC: 1.20.6)*
* You are running the latest version
Previous: 1.20.6-2217-2842b97 (MC: 1.20.6)
(Daemon) Server marked as STOPPING
stop
[22:15:26 INFO]: Stopping the server
[22:15:26 INFO]: Stopping server
[22:15:26 INFO]: [Amend] Disabling Amend v1.7.4--V.1.20.6
[22:15:26 INFO]: [Amend] Started Update Check...
[22:15:26 WARN]: [Amend] -------------------------------
[22:15:26 INFO]: [Amend] Amend
[22:15:26 INFO]: [Amend] Server-Type Selected: PURPUR
[22:15:26 INFO]: [Amend] Current Version: -ec1b4fa (MC: 1.20.6)
[22:15:26 WARN]: [Amend] Version is NOT up to date! Newest PURPUR version is 2218
[22:15:26 INFO]: [Amend] Downloading update and applying to purpurclip.jar...
[22:15:28 INFO]: [Amend] Update Completed!
[22:15:28 WARN]: [Amend] -------------------------------
[22:15:31 INFO]: [Amend] Successfully updated and disabled Amend!
As of right now, I'm unable to download any version of Amend.
To reproduce:
I wanted to use this plugin, but I don't really need the server to update every time purpur updates (which is quite often tbh)
My server restarts everyday at 3am, so I thought there could be an option to make the plugin only check for newer version when the server starts. If there's a newer version it would download it and restart the server. (or just hotpatch it as it does now)
I'm not sure if restarting is possible in normal java, but I think with spigot you can use the "restart-script" in config?
Describe the problem
The website doesn't work, it says that's unavaliable
To Reproduce
Steps to reproduce the behavior:
1: Try to go to: https://amend.mrtron.dev/download
Describe the problem
Amend fails to update Paper server
To Reproduce
Steps to reproduce the behavior:
Info:
Please add the following info below so I can have an understanding.
Version of MC: 1.19.4
Version of Amend: 1.6 v1.19.4
Server-Type: paper
Host (if there is any): n/a
Additional content
Add any other context about the problem here.
[08:08:51 INFO]: Timings Reset
[08:08:56 INFO]: Stopping the server
[08:08:56 INFO]: Stopping server
[08:08:56 INFO]: [Amend] Disabling Amend v1.6--V.1.19.4
[08:08:56 INFO]: [Amend] Started Update Check...
[08:09:03 WARN]: [Amend] -------------------------------
[08:09:03 INFO]: [Amend] Amend
[08:09:03 INFO]: [Amend] Server-Type Selected: PAPER
[08:09:03 INFO]: [Amend] Current Version: 67 (MC: 1.19.4)
[08:09:03 WARN]: [Amend] Version is NOT up to date! Newest PAPER version is 484
[08:09:03 INFO]: [Amend] Downloading update and applying to paper.jar...
[08:09:03 WARN]: [Amend] Plugin Amend v1.6--V.1.19.4 generated an exception while executing task 2
org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler.validate(CraftScheduler.java:552) ~[paper-1.19.4.jar:git-Paper-467]
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:227) ~[paper-1.19.4.jar:git-Paper-467]
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:212) ~[paper-1.19.4.jar:git-Paper-467]
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler.runTaskLater(CraftScheduler.java:176) ~[paper-1.19.4.jar:git-Paper-467]
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler.runTask(CraftScheduler.java:145) ~[paper-1.19.4.jar:git-Paper-467]
at com.tronmc.beta.amend.UpdateChecker.G(Unknown Source) ~[Amend-1.6--V.1.19.4.jar:?]
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.4.jar:git-Paper-467]
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.4.jar:git-Paper-467]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[08:09:15 WARN]: java.nio.file.FileSystemException: paper.jar: The process cannot access the file because it is being used by another process
[08:09:15 WARN]: at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
[08:09:15 WARN]: at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
[08:09:15 WARN]: at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
[08:09:15 WARN]: at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
[08:09:15 WARN]: at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
[08:09:15 WARN]: at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
[08:09:15 WARN]: at java.base/java.nio.file.Files.copy(Files.java:3148)
[08:09:15 WARN]: at Amend-1.6--V.1.19.4.jar//com.tronmc.beta.amend.Amend.onDisable(Amend.java:138)
[08:09:15 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281)
[08:09:15 WARN]: at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:227)
[08:09:15 WARN]: at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugins(PaperPluginInstanceManager.java:151)
[08:09:15 WARN]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugins(PaperPluginManagerImpl.java:92)
[08:09:15 WARN]: at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:528)
[08:09:15 WARN]: at org.bukkit.craftbukkit.v1_19_R3.CraftServer.disablePlugins(CraftServer.java:486)
[08:09:15 WARN]: at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:946)
[08:09:15 WARN]: at net.minecraft.server.dedicated.DedicatedServer.t(DedicatedServer.java:804)
[08:09:15 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1212)
[08:09:15 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[08:09:15 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
Hi,
When shutting down or restarting my server, Amend downloads the latest purpur.jar but is unable to replace the existing jar due to it being used by another service (control panel?). I am using the Crafty Controller control panel.
[13:22:04 WARN]: [Amend] -------------------------------
[13:22:04 INFO]: [Amend] Amend
[13:22:04 INFO]: [Amend] Server-Type Selected: PURPUR
[13:22:04 INFO]: [Amend] Current Version: 2250 (MC: 1.21)
[13:22:04 WARN]: [Amend] Version is NOT up to date! Newest PURPUR version is 2251
[13:22:04 INFO]: [Amend] Downloading update and applying to purpur.jar...
[13:22:04 WARN]: java.nio.file.FileSystemException: purpur.jar: The process cannot access the file because it is being used by another process
[13:22:04 WARN]: at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
[13:22:04 WARN]: at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
[13:22:04 WARN]: at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
[13:22:04 WARN]: at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:273)
[13:22:04 WARN]: at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:109)
[13:22:04 WARN]: at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
[13:22:04 WARN]: at java.base/java.nio.file.Files.copy(Files.java:3133)
[13:22:04 WARN]: at Amend-1.7.6--V.1.21.jar//com.tronmc.beta.amend.Amend.onDisable(Amend.java:199)
[13:22:04 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291)
[13:22:04 WARN]: at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:237)
[13:22:04 WARN]: at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugins(PaperPluginInstanceManager.java:161)
[13:22:04 WARN]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugins(PaperPluginManagerImpl.java:97)
[13:22:04 WARN]: at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:541)
[13:22:04 WARN]: at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:612)
[13:22:04 WARN]: at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:999)
[13:22:04 WARN]: at net.minecraft.server.dedicated.DedicatedServer.stopServer(DedicatedServer.java:881)
[13:22:04 WARN]: at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1330)
[13:22:04 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:332)
[13:22:04 WARN]: at java.base/java.lang.Thread.run(Thread.java:1570)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.