mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-10-01 10:27:24 +00:00
[CLEANUP] Formatted code
This commit is contained in:
@@ -36,10 +36,9 @@ public class PublicServerExecuter extends ServerExecuter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
private String serverName;
|
|
||||||
|
|
||||||
private PBLocalPreferences settings;
|
|
||||||
private final String cacheVersionKey = "cachedProviderVersion";
|
private final String cacheVersionKey = "cachedProviderVersion";
|
||||||
|
private String serverName;
|
||||||
|
private PBLocalPreferences settings;
|
||||||
|
|
||||||
public PublicServerExecuter(final String serverName) {
|
public PublicServerExecuter(final String serverName) {
|
||||||
this.serverName = serverName;
|
this.serverName = serverName;
|
||||||
@@ -58,14 +57,14 @@ public class PublicServerExecuter extends ServerExecuter {
|
|||||||
Core.verbose("Downloading: " + jarUrl + " ...");
|
Core.verbose("Downloading: " + jarUrl + " ...");
|
||||||
|
|
||||||
String providerVersion = serverProviderInfo.getProviderVersion();
|
String providerVersion = serverProviderInfo.getProviderVersion();
|
||||||
if(providerVersion == null) {
|
if (providerVersion == null) {
|
||||||
providerVersion = "error";
|
providerVersion = "error";
|
||||||
}
|
}
|
||||||
|
|
||||||
settings = new PBLocalPreferences(serverProviderInfo.getClientCRC32()+".json");
|
settings = new PBLocalPreferences(serverProviderInfo.getClientCRC32() + ".json");
|
||||||
if(settings.getSetting(cacheVersionKey) != null) {
|
if (settings.getSetting(cacheVersionKey) != null) {
|
||||||
Core.verbose(String.format("Latest provider version: %s, local provider version: %s", settings.getSetting(cacheVersionKey), providerVersion));
|
Core.verbose(String.format("Latest provider version: %s, local provider version: %s", settings.getSetting(cacheVersionKey), providerVersion));
|
||||||
if(!settings.getSetting(cacheVersionKey).equals(providerVersion)) {
|
if (!settings.getSetting(cacheVersionKey).equals(providerVersion)) {
|
||||||
Core.verbose("Local provider outdated, clearing cache.");
|
Core.verbose("Local provider outdated, clearing cache.");
|
||||||
Directories.clearCache();
|
Directories.clearCache();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user