Fix maven some more

This commit is contained in:
Sn0wStorm 2015-01-09 02:28:04 +01:00
parent 9139d52089
commit 224e096448
2 changed files with 7 additions and 16 deletions

17
pom.xml
View File

@ -96,15 +96,6 @@
</snapshots>
</repository>
<repository>
<id>ChestShop-repo</id>
<url>https://github.com/Acrobot/ChestShop-3/tree/master/repo</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>addstar-repo</id>
<url>http://maven.addstar.com.au/artifactory/ext-release-local/</url>
@ -142,7 +133,7 @@
<dependency>
<groupId>com.griefcraft</groupId>
<artifactId>lwc</artifactId>
<version>4.3.1</version>
<version>4.4.0</version>
<scope>compile</scope>
<type>jar</type>
</dependency>
@ -156,9 +147,9 @@
</dependency>
<dependency>
<groupId>de.diddiz</groupId>
<artifactId>logblock</artifactId>
<version>dev-SNAPSHOT</version>
<groupId>de.diddiz.LogBlock</groupId>
<artifactId>LogBlock</artifactId>
<version>1.80</version>
<scope>compile</scope>
<type>jar</type>
</dependency>

View File

@ -36,6 +36,7 @@ import com.dre.brewery.integration.LogBlockBarrel;
public class P extends JavaPlugin {
public static P p;
public static String configVersion = "1.3";
public static boolean debug;
public static boolean useUUID;
@ -197,10 +198,9 @@ public class P extends JavaPlugin {
// Check if config is the newest version
String version = config.getString("version", null);
if (version != null) {
String currentVersion = getDescription().getVersion();
if (!version.equals(currentVersion)) {
if (!version.equals(configVersion)) {
new ConfigUpdater(file).update(version, language);
P.p.log("Config Updated to version: " + currentVersion);
P.p.log("Config Updated to version: " + configVersion);
config = YamlConfiguration.loadConfiguration(file);
}
}