Deploy only the universal jar to the target folder

This commit is contained in:
games647
2016-09-18 11:40:21 +02:00
parent a02acd2d63
commit bef90d11cd
6 changed files with 21 additions and 14 deletions
@@ -70,10 +70,17 @@ public class FastLoginBungee extends Plugin {
public void saveDefaultFile(String fileName) {
File configFile = new File(getDataFolder(), fileName);
if (!configFile.exists()) {
try (InputStream in = getResourceAsStream(fileName)) {
InputStream in = getResourceAsStream(fileName);
try {
Files.copy(in, configFile.toPath());
} catch (IOException ioExc) {
getLogger().log(Level.SEVERE, "Error saving default " + fileName, ioExc);
} finally {
try {
in.close();
} catch (IOException ex) {
getLogger().log(Level.SEVERE, null, ex);
}
}
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ main: ${project.groupId}.${project.artifactId}.${project.name}
version: ${project.version}
author: games647, http://github.com/games647/FastLogin/graphs/contributors
softdepends:
softdepend:
# BungeeCord auth plugins
- BungeeAuth