diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/tasks/DelayedAuthHook.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/tasks/DelayedAuthHook.java index ed89e60d..0f2e79a7 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/tasks/DelayedAuthHook.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/tasks/DelayedAuthHook.java @@ -9,8 +9,8 @@ import com.github.games647.fastlogin.bukkit.hooks.UltraAuthHook; import com.github.games647.fastlogin.bukkit.hooks.xAuthHook; import com.github.games647.fastlogin.core.hooks.AuthPlugin; import com.google.common.collect.Lists; -import java.util.List; +import java.util.List; import java.util.logging.Level; import org.bukkit.Bukkit; @@ -40,6 +40,7 @@ public class DelayedAuthHook implements Runnable { private boolean registerHooks() { AuthPlugin authPluginHook = null; try { + @SuppressWarnings("unchecked") List>> supportedHooks = Lists.newArrayList(AuthMeHook.class , CrazyLoginHook.class, LogItHook.class, LoginSecurityHook.class, UltraAuthHook.class , xAuthHook.class); diff --git a/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java b/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java index 2132bdeb..28b94678 100644 --- a/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java +++ b/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java @@ -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); + } } } } diff --git a/bungee/src/main/resources/bungee.yml b/bungee/src/main/resources/bungee.yml index 132467ef..b11a720e 100644 --- a/bungee/src/main/resources/bungee.yml +++ b/bungee/src/main/resources/bungee.yml @@ -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 diff --git a/core/src/main/java/com/github/games647/fastlogin/core/PlayerProfile.java b/core/src/main/java/com/github/games647/fastlogin/core/PlayerProfile.java index 9ad52351..e813cdbd 100644 --- a/core/src/main/java/com/github/games647/fastlogin/core/PlayerProfile.java +++ b/core/src/main/java/com/github/games647/fastlogin/core/PlayerProfile.java @@ -13,8 +13,7 @@ public class PlayerProfile { private String lastIp; private long lastLogin; - public PlayerProfile(long userId, UUID uuid, String playerName, boolean premium - , String lastIp, long lastLogin) { + public PlayerProfile(long userId, UUID uuid, String playerName, boolean premium, String lastIp, long lastLogin) { this.userId = userId; this.uuid = uuid; this.playerName = playerName; diff --git a/pom.xml b/pom.xml index e57e2865..79571a5a 100644 --- a/pom.xml +++ b/pom.xml @@ -56,15 +56,6 @@ true - - - org.apache.maven.plugins - maven-jar-plugin - 3.0.2 - - ${outputDir} - - diff --git a/universal/pom.xml b/universal/pom.xml index 753184a8..35466afa 100644 --- a/universal/pom.xml +++ b/universal/pom.xml @@ -43,6 +43,15 @@ + + + org.apache.maven.plugins + maven-jar-plugin + 3.0.2 + + ${outputDir} + +