Set the handcuff manager to null on disable
This commit is contained in:
		@@ -64,6 +64,7 @@ public class JailMain extends JavaPlugin {
 | 
				
			|||||||
		pm = null;
 | 
							pm = null;
 | 
				
			||||||
		jm = null;
 | 
							jm = null;
 | 
				
			||||||
		io = null;
 | 
							io = null;
 | 
				
			||||||
 | 
							hcm = null;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	private void loadConfig() {
 | 
						private void loadConfig() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,6 +35,7 @@ public class TestJailStuff {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	@Test
 | 
						@Test
 | 
				
			||||||
	public void testForJails() {
 | 
						public void testForJails() {
 | 
				
			||||||
 | 
							assertNotNull("The HandCuffManager is null.", main.getHandCuffManager());
 | 
				
			||||||
		assertNotNull("The JailIO is null.", main.getJailIO());
 | 
							assertNotNull("The JailIO is null.", main.getJailIO());
 | 
				
			||||||
		assertNotNull("The JailManager is null.", main.getJailManager());
 | 
							assertNotNull("The JailManager is null.", main.getJailManager());
 | 
				
			||||||
		assertNotNull("The HashSet for jails return is null.", main.getJailManager().getJails());
 | 
							assertNotNull("The HashSet for jails return is null.", main.getJailManager().getJails());
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user