forked from TuxCoding/FastLogin
Deploy only the universal jar to the target folder
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user