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