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;
 | 
						private static MassiveCore i;
 | 
				
			||||||
	public static MassiveCore get() { return i; }
 | 
						public static MassiveCore get() { return i; }
 | 
				
			||||||
	public MassiveCore()
 | 
						public MassiveCore() { i = this; }
 | 
				
			||||||
	{
 | 
					 | 
				
			||||||
		i = this;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	// -------------------------------------------- //
 | 
						// -------------------------------------------- //
 | 
				
			||||||
	// STATIC
 | 
						// STATIC
 | 
				
			||||||
 | 
				
			|||||||
@ -32,7 +32,7 @@ public abstract class MassivePlugin extends JavaPlugin implements Listener, Name
 | 
				
			|||||||
	public Gson getGson() { return this.gson; }
 | 
						public Gson getGson() { return this.gson; }
 | 
				
			||||||
	public void setGson(Gson gson) { this.gson = gson; }
 | 
						public void setGson(Gson gson) { this.gson = gson; }
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	protected boolean versionSynchronized = false;
 | 
						protected boolean versionSynchronized = true;
 | 
				
			||||||
	public boolean isVersionSynchronized() { return this.versionSynchronized; }
 | 
						public boolean isVersionSynchronized() { return this.versionSynchronized; }
 | 
				
			||||||
	public void setVersionSynchronized(boolean versionSynchronized) { this.versionSynchronized = 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 plugin is version synchronized ...
 | 
				
			||||||
		if ( ! this.isVersionSynchronized()) return;
 | 
							if ( ! this.isVersionSynchronized()) return;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							// ... and it's not MassiveCore itself ...
 | 
				
			||||||
 | 
							if (this.getClass().equals(MassiveCore.class)) return;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
		// ... and checking is enabled ...
 | 
							// ... and checking is enabled ...
 | 
				
			||||||
		if ( ! MassiveCoreMConf.get().versionSynchronizationEnabled) return;
 | 
							if ( ! MassiveCoreMConf.get().versionSynchronizationEnabled) return;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user