Add a way to get the jail stick manager in the JailAPI
This commit is contained in:
parent
3570a4b0ee
commit
b9188ee2ba
@ -38,6 +38,16 @@ public class JailsAPI {
|
||||
public static PrisonerManager getPrisonerManager() {
|
||||
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.
|
||||
|
@ -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()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user