geforkt von Mirrors/Paper
Fix plugin update IO logic when replacing jars
Dieser Commit ist enthalten in:
Ursprung
226468f7b0
Commit
f9f8a78753
@ -49,7 +49,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ }
|
+ }
|
||||||
+ if (!pluginName.equals(updatePluginName)) continue;
|
+ if (!pluginName.equals(updatePluginName)) continue;
|
||||||
+ try {
|
+ try {
|
||||||
+ java.nio.file.Files.copy(updateFile.toPath(), file.toPath());
|
+ java.nio.file.Files.copy(updateFile.toPath(), file.toPath(), java.nio.file.StandardCopyOption.REPLACE_EXISTING);
|
||||||
+ } catch (java.io.IOException exception) {
|
+ } catch (java.io.IOException exception) {
|
||||||
+ server.getLogger().log(Level.SEVERE, "Could not copy '" + updateFile.getPath() + "' to '" + file.getPath() + "' in update plugin process", exception);
|
+ server.getLogger().log(Level.SEVERE, "Could not copy '" + updateFile.getPath() + "' to '" + file.getPath() + "' in update plugin process", exception);
|
||||||
+ continue;
|
+ continue;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren