13
0
geforkt von Mirrors/Paper

Fix plugin update IO logic when replacing jars

Dieser Commit ist enthalten in:
Shane Freeder 2022-07-23 05:52:57 +01:00
Ursprung 226468f7b0
Commit f9f8a78753

Datei anzeigen

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