Default versionSynchronized to true

This commit is contained in:
Olof Larsson 2017-03-24 11:51:25 +01:00
parent d96fee007a
commit e4d98d8f2c
2 changed files with 5 additions and 5 deletions

View File

@ -148,10 +148,7 @@ public class MassiveCore extends MassivePlugin
private static MassiveCore i;
public static MassiveCore get() { return i; }
public MassiveCore()
{
i = this;
}
public MassiveCore() { i = this; }
// -------------------------------------------- //
// STATIC

View File

@ -32,7 +32,7 @@ public abstract class MassivePlugin extends JavaPlugin implements Listener, Name
public Gson getGson() { return this.gson; }
public void setGson(Gson gson) { this.gson = gson; }
protected boolean versionSynchronized = false;
protected boolean versionSynchronized = true;
public boolean isVersionSynchronized() { return this.versionSynchronized; }
public void setVersionSynchronized(boolean versionSynchronized) { this.versionSynchronized = versionSynchronized; }
@ -103,6 +103,9 @@ public abstract class MassivePlugin extends JavaPlugin implements Listener, Name
// If this plugin is version synchronized ...
if ( ! this.isVersionSynchronized()) return;
// ... and it's not MassiveCore itself ...
if (this.getClass().equals(MassiveCore.class)) return;
// ... and checking is enabled ...
if ( ! MassiveCoreMConf.get().versionSynchronizationEnabled) return;