Start work on Jail Sticks.
This commit is contained in:
parent
2ec69c5650
commit
274f3a03ab
@ -11,6 +11,7 @@ Beta 1 Changes
|
||||
- MySQL data validation, basically if a cell or prisoner reference a jail which no longer exists they are removed
|
||||
- Fix a bug with not being able to unjail someone forcefully if they were in a cell ([#17](https://github.com/graywolf336/Jail/issues/17))
|
||||
- Add the record keeping system ([#12](https://github.com/graywolf336/Jail/issues/12))
|
||||
- Added Jail Sticks, format of them has slightly changed ([#16](https://github.com/graywolf336/Jail/issues/16))
|
||||
|
||||
Changes
|
||||
===
|
||||
|
@ -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;
|
||||
|
@ -12,10 +12,6 @@ storage:
|
||||
username: 'root'
|
||||
password: 'password'
|
||||
prefix: 'j3_'
|
||||
database: 'jailDatabase'
|
||||
jails:
|
||||
endermenProtection: true
|
||||
explosionProtection: true
|
||||
jailing:
|
||||
during:
|
||||
blockBreakPenalty: 5m
|
||||
@ -58,4 +54,9 @@ jailing:
|
||||
backToPreviousPosition: false
|
||||
commands: []
|
||||
restorePreviousGameMode: false
|
||||
teleport: true
|
||||
teleport: true
|
||||
database: 'jailDatabase'
|
||||
jails:
|
||||
endermenProtection: true
|
||||
explosionProtection: true
|
||||
jailstick: ["stick,30,,Running away"]
|
Loading…
Reference in New Issue
Block a user