Commit Graph

28 Commits

Author SHA1 Message Date
71a60e6ee3 Fix the spacing and clean it up. 2014-07-27 14:46:25 -05:00
1ea60ca106 Fix the confirmation never expiring. 2014-07-24 23:17:20 -05:00
1898121643 Simplify the language system and the language calls, also fix the
language system not copying over the new values when new values were
added.
2014-07-24 21:16:57 -05:00
b63773c7a9 Move the timer to be async if we're using bukkit's timer.
This should improve the performance of the plugin even more, because it
won't do any database calls while inside the loop which is what was
usually the hang up time.

This is completely untested and possibly could throw tons of errors.
2014-07-21 19:11:12 -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
5c4122ee92 Fix the unjailing not working, was messed up when we switch to UUIDs 2014-07-14 21:55:01 -05:00
b83d1245f8 Simplify one of our checks on getPrisoner 2014-07-14 21:40:21 -05:00
ce1231da39 Add some debugging code. 2014-07-14 21:38:15 -05:00
a77e0cc472 Performance changes to get better performance on the move protection.
We now get the cache object inside the move event and get all the other
objects from that. The reason for this is so that we don't have to then
loop through all the prisoners in a jail again to get one prisoner, just
get it from the cache object.
2014-06-12 10:30:00 -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
b3033913c7 Properly output how many cells were loaded, hopefully this has something
to do with #26 displaying incorrect information.
2014-05-02 01:35:04 -05:00
4d4f609b82 Finish using the UUID, we are still using blocking methods.
I want to get fully away from blocking methods and instead make the
user/player/prisoner/whatever wait to get an answer while we retrieve
the uuid information asynchronously.
2014-04-29 13:20:33 -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
0981fe659f Correctly log how many prisoners were loaded. 2014-04-28 22:46:41 -05:00
0fabe1ff2e Add some sql to remove the cells and jails.
Untested.
2014-03-05 16:56:13 -06:00
3784eb6b28 Fix the confirm not working. 2014-02-14 23:18:41 -06:00
e148e1e2dd Fix an NPE with the confirmation for #3, oversight on my part. 2014-02-14 21:42:27 -06:00
52456edc6b Finish up the confirmations for #3. 2014-02-14 21:37:39 -06:00
82a40c5d8e Add the confirmation to the clearforce command, continued work on #3. 2014-02-14 18:02:08 -06:00
54bea41d05 Further work on #3, lots of logic work figured out. The clear command
uses the confirmation method now, just need to test it.
2014-02-13 13:40:23 -06:00
78cc20c2c1 Add the removing of a jail via the ``/jail delete`` command. 2014-02-13 11:26:42 -06:00
d0e41ed908 Add the unjailforce command 2014-02-03 18:44: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
dc2e74a63e Implement getting the jail nearest to sender of the jail command if no
jail parameter is defined.
2013-12-24 17:51:41 -06:00
b5133842c0 Creation a CreationPlayer with the jailname and cellname. 2013-12-09 14:45:24 -06:00
7976dec870 Save the Jail when we add it. 2013-12-06 21:50:22 -06:00
596c9de2ad First commit, converted to a truely maven project and switching over to my own repository for better management. 2013-12-05 18:22:15 -06:00