Commit Graph

60 Commits

Author SHA1 Message Date
307a096acc Add an interface for the Jail Pay Manager.
Further API work.
2015-05-21 14:30:49 -05:00
cf50e37910 Add an interface for the Jail Stick Manager.
Adding the API further this way if someone wants to handle items in a
different way or handle their own implementation of it, they can easily
do it.
2015-05-21 14:20:17 -05:00
3570a4b0ee Protect some of the constructors since we don't need more than one. 2015-02-13 14:34:38 -06:00
d205a35d0a Add the Jail Vote feature back in, with lots of unit testing. Closes #8 2015-02-12 21:29:09 -06:00
7fd0a8ddc7 Fix the race condition when protecting blocks, fixes #34 2015-01-26 02:00:49 -06:00
db46e7c036 Fix the error when either of the command handlers are null, fixes #40
These errors only happen when the plugin didn't load successfully,
you'll need to check further up in the console/server log to see what
actually caused this error.
2015-01-25 23:09:25 -06:00
81da8ddb59 First attempt at getting the signs of cells to display information #31
The variables possible are:
* %player% - the player's last known name
* %uuid% - the player's uuid, or what can fit on a sign
* %reason% - the reason the player was jailed
* %jailer% - the person/thing who jailed this player
* %afktime% - the amount of time the player has been afk
* %timeinminutes% - the amount of remaining time the player has in
minutes

If the player is jailed forever, then it pulls from the language file
`jailedforeversign` property.
2014-08-19 14:19:30 -05:00
71a60e6ee3 Fix the spacing and clean it up. 2014-07-27 14:46:25 -05:00
57e304f7c4 Only interaction with the jail stick manager when enabled. Closes #30 2014-07-27 12:42:50 -05:00
7b3a085edb Debug how long it took for the entire plugin to enable all the way. 2014-07-24 23:01:10 -05:00
709a06f330 Add an API class and also add some testing for it. 2014-07-23 16:39:45 -05:00
bfd786f650 When we reload the update checking, cancel the previous task. 2014-07-21 18:23:31 -05:00
70b2fbe1e1 Cancel all the tasks for this plugin when shutting down. 2014-07-21 18:20:04 -05:00
1c92f90ccc Update notifications! For dev, stable-dev, and bukkit channels! :) 2014-07-21 18:17:30 -05:00
6fe5eeb346 Move some items around for organization 2014-07-21 15:54:16 -05:00
8a7a9cefef Make the jail stick manager/creation smarter and fix jailing via jail
sticks, as it wasn't working at all.
2014-07-15 01:05:46 -05:00
a5bf89b07e Don't allow jailing in unloaded worlds and don't allow joining while
jailed in unloaded worlds.
2014-07-14 22:53:48 -05:00
d535b758d4 Add .gitattributes 2014-06-12 10:50:53 -05:00
7ad5fedfd1 Work on the tests and change up some performance issues.
1. In the player move event we looped through the jailed players more
than once which really is an issue when you have several hundred jailed
and since the move event is called several times a second, that was a
huge performance hit.
2. Don't save the prisoner data as soon as they are jailed, we take care
of that else where with the shutting down and counting down time.
2014-05-30 15:54:11 -05:00
af1fa37470 Add a cache for prisoners online only, this should help performance #26
The cache listens to a lot of events and custom events to ensure the
cache is up to date, this way we don't have to loop through all the
prisoners in a jail every single time they move or something but instead
just check the cache.
2014-05-30 12:23:32 -05:00
3e54d79dd3 Try to lower the amount of time spent on each move event as mentioned in
issue #26
2014-05-08 19:30:20 -05:00
ef5dfe3815 If we have converted data, save everything after JailIO is loaded.
This might solve #26 but I'm not closing it yet as this is untested.
2014-05-03 01:12:26 -05:00
63e117ac72 Build will fail. Started work on converting to using uuid's internally.
While doing this I deleted one method that I shouldn't have, so going to
revert that. Next I have to build a method or two which will allow me to
do last known names lookups, etc. Might switch to using a library to
handle getting names async so we don't block the server up, doing this
will result in us having to recode some of the commands internally.

If you have any suggestions or questions, I'm open.
2014-04-28 23:52:52 -05:00
7167bff981 Fix the NPE when providing backward compabitility. 2014-04-27 00:19:23 -05:00
3ad2eb26af Merge branch 'master' of git@github.com:graywolf336/Jail.git 2014-04-21 22:04:23 -05:00
0ae2956137 Add a command to toggle whether jail is in debugging or not. 2014-04-21 22:04:03 -05:00
caf4315d6c Only initialize JailPayManager if vault exists. 2014-04-01 23:21:24 -05:00
4ade1bcf38 Implement Jail Pay, this closes #11 2014-03-20 15:33:42 -05:00
126c1576c4 Add the jail name to the scoreboard's title. 2014-03-16 16:13:40 -05:00
3e3f2d432e Convert the old data to our new data and move the old files.
Closes #24 but it probably has a few bugs or prisoners who were in cells
are not any more, but I will only fix that if someone pursades me to.
2014-03-14 17:40:44 -05:00
737a7e35e2 Debugging is important to me, load the old debugging value. 2014-03-14 15:35:50 -05:00
2dfe777f3f Actually make a call to move over the old config. 2014-03-14 15:18:36 -05:00
060bb125a4 First work on converting the old global config file to the new one.
For #23
2014-03-14 15:15:30 -05:00
ec1e91cda2 Implement the usage of Scoreboards, make the language configurable.
Closes #15
2014-03-13 12:59:47 -05:00
274f3a03ab Start work on Jail Sticks. 2014-03-08 22:53:31 -06:00
5f6807fc24 Started work on profiling when prisoners get jailed #12.
This only works for the sql right now, next commit will handle flatfile.
2014-03-06 16:51:25 -06:00
5e6fecfef8 Add the creation of tables sql, if the sql is mysql. #18
sqlite will be last on my list, might move it into beta 3.
2014-02-20 16:20:27 -06:00
48a7435fbe Fix the tests failing and also fix the jail command not doing anything. 2014-02-11 20:44:19 -06:00
d0312afc66 First attempt at working on the transferring of prisoners 2014-02-04 13:30:12 -06:00
b1f4b7bb41 Relocate the move protection so that we only register it if enabled.
This way we save on a tiny bit of performance when it is disabled.
2014-02-01 11:52:50 -06:00
691d59f0f7 Work on the new command system, this is not ready at all.
This commit is only so I can work on it more at another computer.
2014-01-27 18:02:24 -06:00
95649e7f03 Start work on the protection and penalties. First up is Block Place 2014-01-19 14:40:39 -06:00
cf7c9fc4c2 Protect the jails against explosions, if it is enabled 2014-01-08 15:27:38 -06:00
d734d99e88 Protect against block breaking and block placing in jails
Unless the player has admin permission. This does not include the
penalties as those will be done in a future commit. This also has a
little better performance on the block placing and breaking events, if
these checks are disabled.
2014-01-08 15:02:24 -06:00
57eb5c71e3 Nullify the timer on disable 2014-01-03 14:18:16 -06:00
f5bf76ec46 Add jail timer and jail event, count down the prisoners time. 2014-01-03 14:10:38 -06:00
738f8bc057 Set the handcuff manager to null on disable 2014-01-01 18:27:23 -06:00
3f27410a7a Handcuffing messages are now fully customizable via the language file 2014-01-01 17:39:21 -06:00
f1451f4179 Add the HandCuffListener 2014-01-01 16:22:40 -06:00
9b534b2abc Add handcuffing, next commit will be handcuff listeners. 2014-01-01 16:19:04 -06:00