Start work on Jail Sticks.

This commit is contained in:
graywolf336
2014-03-08 22:53:31 -06:00
parent 2ec69c5650
commit 274f3a03ab
3 changed files with 15 additions and 5 deletions

View File

@ -30,6 +30,7 @@ public class JailMain extends JavaPlugin {
private JailHandler jh;
private JailIO io;
private JailManager jm;
private JailStickManager jsm;
private JailTimer jt;
private PrisonerManager pm;
private boolean debug = false;
@ -57,6 +58,7 @@ public class JailMain extends JavaPlugin {
cmdHand = new CommandHandler(this);
jh = new JailHandler(this);
pm = new PrisonerManager(this);
jsm = new JailStickManager(this);
PluginManager plm = this.getServer().getPluginManager();
plm.registerEvents(new BlockListener(this), this);
@ -97,6 +99,7 @@ public class JailMain extends JavaPlugin {
cmdHand = null;
pm = null;
jm = null;
jsm = null;
io = null;
hcm = null;
}
@ -157,6 +160,11 @@ public class JailMain extends JavaPlugin {
return this.pm;
}
/** Gets the {@link JailStickManager} instance. */
public JailStickManager getJailStickManager() {
return this.jsm;
}
/** Returns if the plugin is in debug state or not. */
public boolean inDebug() {
return this.debug;