Default versionSynchronized to true
This commit is contained in:
parent
d96fee007a
commit
e4d98d8f2c
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user