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
+4 -13
View File
@@ -96,15 +96,6 @@
</snapshots> </snapshots>
</repository> </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> <repository>
<id>addstar-repo</id> <id>addstar-repo</id>
<url>http://maven.addstar.com.au/artifactory/ext-release-local/</url> <url>http://maven.addstar.com.au/artifactory/ext-release-local/</url>
@@ -142,7 +133,7 @@
<dependency> <dependency>
<groupId>com.griefcraft</groupId> <groupId>com.griefcraft</groupId>
<artifactId>lwc</artifactId> <artifactId>lwc</artifactId>
<version>4.3.1</version> <version>4.4.0</version>
<scope>compile</scope> <scope>compile</scope>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
@@ -156,9 +147,9 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>de.diddiz</groupId> <groupId>de.diddiz.LogBlock</groupId>
<artifactId>logblock</artifactId> <artifactId>LogBlock</artifactId>
<version>dev-SNAPSHOT</version> <version>1.80</version>
<scope>compile</scope> <scope>compile</scope>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
+3 -3
View File
@@ -36,6 +36,7 @@ import com.dre.brewery.integration.LogBlockBarrel;
public class P extends JavaPlugin { public class P extends JavaPlugin {
public static P p; public static P p;
public static String configVersion = "1.3";
public static boolean debug; public static boolean debug;
public static boolean useUUID; public static boolean useUUID;
@@ -197,10 +198,9 @@ public class P extends JavaPlugin {
// Check if config is the newest version // Check if config is the newest version
String version = config.getString("version", null); String version = config.getString("version", null);
if (version != null) { if (version != null) {
String currentVersion = getDescription().getVersion(); if (!version.equals(configVersion)) {
if (!version.equals(currentVersion)) {
new ConfigUpdater(file).update(version, language); 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); config = YamlConfiguration.loadConfiguration(file);
} }
} }