mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2025-02-21 02:01:23 +01:00
Fix maven some more
This commit is contained in:
parent
9139d52089
commit
224e096448
17
pom.xml
17
pom.xml
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user