diff --git a/pom.xml b/pom.xml index f913596be..07150f082 100644 --- a/pom.xml +++ b/pom.xml @@ -48,7 +48,9 @@ + UTF-8 + UTF-8 AuthMe @@ -57,9 +59,6 @@ Xephi, sgdc3, DNx5, timvisee, games647, ljacqu Unknown - - 1.7 - 1.9-pre1-SNAPSHOT @@ -147,14 +146,26 @@ - + org.apache.maven.plugins maven-compiler-plugin 3.5.1 - 1.7 - ${javaVersion} + 1.8 + 1.8 + + 1.7 + 1.7 + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.15 + + -Dfile.encoding=UTF-8 @@ -717,7 +728,7 @@ net.minelink CombatTagPlus - 1.2.1-SNAPSHOT + 1.2.2-SNAPSHOT provided diff --git a/src/main/java/fr/xephi/authme/process/login/ProcessSyncPlayerLogin.java b/src/main/java/fr/xephi/authme/process/login/ProcessSyncPlayerLogin.java index 0c120b52b..78995cb1c 100644 --- a/src/main/java/fr/xephi/authme/process/login/ProcessSyncPlayerLogin.java +++ b/src/main/java/fr/xephi/authme/process/login/ProcessSyncPlayerLogin.java @@ -38,7 +38,6 @@ public class ProcessSyncPlayerLogin implements Runnable { private final String name; private final PlayerAuth auth; private final AuthMe plugin; - private final DataSource database; private final PluginManager pm; private final JsonCache playerCache; private final NewSetting settings; @@ -54,7 +53,6 @@ public class ProcessSyncPlayerLogin implements Runnable { public ProcessSyncPlayerLogin(Player player, AuthMe plugin, DataSource database, NewSetting settings) { this.plugin = plugin; - this.database = database; this.pm = plugin.getServer().getPluginManager(); this.player = player; this.name = player.getName().toLowerCase(); diff --git a/src/main/java/fr/xephi/authme/settings/Settings.java b/src/main/java/fr/xephi/authme/settings/Settings.java index c53869c0f..839e37378 100644 --- a/src/main/java/fr/xephi/authme/settings/Settings.java +++ b/src/main/java/fr/xephi/authme/settings/Settings.java @@ -84,7 +84,6 @@ public final class Settings { getMaxJoinPerIp; protected static FileConfiguration configFile; private static AuthMe plugin; - private static Settings instance; /** * Constructor for Settings. @@ -92,7 +91,6 @@ public final class Settings { * @param pl AuthMe */ public Settings(AuthMe pl) { - instance = this; plugin = pl; configFile = plugin.getConfig(); loadVariables(); diff --git a/src/main/java/fr/xephi/authme/util/Profiler.java b/src/main/java/fr/xephi/authme/util/Profiler.java index 0784aa653..73bdf5e45 100644 --- a/src/main/java/fr/xephi/authme/util/Profiler.java +++ b/src/main/java/fr/xephi/authme/util/Profiler.java @@ -2,15 +2,13 @@ package fr.xephi.authme.util; import java.text.DecimalFormat; -/** - */ -@SuppressWarnings("UnusedDeclaration") public class Profiler { /** * Defines the past time in milliseconds. */ private long time = 0; + /** * Defines the time in milliseconds the profiler last started at. */