Code Monkey home page Code Monkey logo

amend's Introduction






Hey! wave

I am MrTron(Man), but you can call me Will! I like coding in JS, HTML and CSS, and now Java.

I am a front-end developer, a photographer and a System Administrator. ๐Ÿ‘จโ€๐Ÿ’ป

I am majoring in Cybersecurity

I created a GitHub back in 2017, I just never used it cause I hadn't discovered my love for code yet! Now here we are! ๐Ÿ˜€

I am currently learning Java. ๐Ÿ˜Ž

Currently working on a new plugin called Amend. ๐Ÿ˜

I am very good at web development, if I do say so myself. ๐Ÿ˜‰

I am very good with Ubuntu & NGINX

I am currently working on maintaining and creating my Minecraft server along with a website to help me learn more.

I am also working on a new plugin for my server that's custom-made!

Email me at [email protected] if needed. ๐Ÿ“ง

Discord Presence My Stats POG Hits

amend's People

Contributors

mrtronman avatar untouchedodin0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

amend's Issues

Amend keeps downloading even when its up-to-date

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:

  1. Purpur server
  2. Start server with amend
  3. shut down or restart
  4. See message that a "new" version of Purpur is being downloaded

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

Amend keeps downloading despite server being up-to-date

Describe the problem
Amend downloads "newer" version despite running the latest server version
Similar to issue: #6

To Reproduce
Steps to reproduce the behavior:

  1. Download latest Purpur 1.20.6
  2. Run server with that
  3. Stop server
  4. Check log to see that Amend downloads "latest" version

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:

Log file, click to open

</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!

Alternative to hot swapping

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?

Not working on Windows based server

Describe the problem
Amend fails to update Paper server

To Reproduce
Steps to reproduce the behavior:

  1. Run server with Amend
  2. Shutdown server with "stop" command
  3. See Amend error

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)

The process cannot access the file because it is being used by another process

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.