Add a way to get the jail stick manager in the JailAPI

This commit is contained in:
graywolf336 2015-02-13 14:36:42 -06:00
parent 3570a4b0ee
commit b9188ee2ba
2 changed files with 11 additions and 0 deletions

View File

@ -39,6 +39,16 @@ public class JailsAPI {
return pl.getPrisonerManager();
}
/**
* The instance of the {@link JailStickManager} which handles all the jail sticks.
*
* @return instance of the {@link JailStickManager}
* @see JailStickManager
*/
public static JailStickManager getJailStickManager() {
return pl.getJailStickManager();
}
/**
* The instance of the {@link HandCuffManager} which handles all the handcuffing of players.
*

View File

@ -57,6 +57,7 @@ public class TestJailAPI {
assertThat("The HandCuff Manager references are different.", JailsAPI.getHandCuffManager(), is(main.getHandCuffManager()));
assertThat("The Jail Manager references are different.", JailsAPI.getJailManager(), is(main.getJailManager()));
assertThat("The Prisoner Manager references are different.", JailsAPI.getPrisonerManager(), is(main.getPrisonerManager()));
assertThat("The Jail Stick Manager references are different.", JailsAPI.getJailStickManager(), is(main.getJailStickManager()));
assertThat("The Jail Vote Manager references are different.", JailsAPI.getJailVoteManager(), is(main.getJailVoteManager()));
}