diff --git a/pom.xml b/pom.xml index 6232265f..998b3fd4 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 LibsDisguises LibsDisguises - 8.2.5 + 8.2.5-SNAPSHOT src diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index 9994516b..dad9c1e6 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -47,13 +47,11 @@ public class LibsDisguises extends JavaPlugin { File configFile = new File(getDataFolder(), "config.yml"); InputStream stream = null; FileReader reader = null; - String toWrite = ""; - String toRead = ""; try { stream = getClassLoader().getResource("config.yml").openStream(); - toWrite = read(new InputStreamReader(stream)); + String toWrite = read(new InputStreamReader(stream)); reader = new FileReader(configFile); - toRead = read(reader); + String toRead = read(reader); if (!toRead.equals(toWrite)) { try { @@ -92,7 +90,7 @@ public class LibsDisguises extends JavaPlugin { try { // Here I use reflection to set the plugin for Disguise.. - // Kind of stupid but I don't want open API calls for a commonly used object. + // Kind of stupid but I don't want open API calls for a commonly used class. Field field = Disguise.class.getDeclaredField("plugin"); field.setAccessible(true); field.set(null, this);