2014-07-23 16:39:45 -05:00
|
|
|
package com.graywolf336.jail;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The static api interface for Jail plugin.
|
|
|
|
*
|
|
|
|
* <p />
|
|
|
|
*
|
|
|
|
* If you're looking for non-static methods, please see the
|
|
|
|
* {@link JailMain} interface.
|
|
|
|
*
|
|
|
|
* @author graywolf336
|
|
|
|
* @version 3.0.0
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
|
|
|
public class JailsAPI {
|
2014-07-27 14:46:25 -05:00
|
|
|
private static JailMain pl;
|
|
|
|
|
|
|
|
public JailsAPI(JailMain plugin) {
|
|
|
|
pl = plugin;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The instance of the {@link JailManager} which contains all the jails and in return prisoners.
|
|
|
|
*
|
|
|
|
* @return instance of the {@link JailManager}
|
|
|
|
* @see JailManager
|
|
|
|
*/
|
|
|
|
public static JailManager getJailManager() {
|
|
|
|
return pl.getJailManager();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The instance of the {@link PrisonerManager} which handles all the jailing of players.
|
|
|
|
*
|
|
|
|
* @return instance of the {@link PrisonerManager}
|
|
|
|
* @see PrisonerManager
|
|
|
|
*/
|
|
|
|
public static PrisonerManager getPrisonerManager() {
|
|
|
|
return pl.getPrisonerManager();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The instance of the {@link HandCuffManager} which handles all the handcuffing of players.
|
|
|
|
*
|
|
|
|
* @return instance of the {@link HandCuffManager}
|
|
|
|
* @see HandCuffManager
|
|
|
|
*/
|
|
|
|
public static HandCuffManager getHandCuffManager() {
|
|
|
|
return pl.getHandCuffManager();
|
|
|
|
}
|
2014-07-23 16:39:45 -05:00
|
|
|
}
|