Commit Graph

524 Commits

Author SHA1 Message Date
graywolf336
9ec7f389db Load/Disable the move protection listener #88
We now load or disable the move protection listener based upon the
config when the plugin is reloaded.
2015-07-23 14:53:30 -05:00
graywolf336
1648c04745 Correct the message in debugging when unjailing
The debug message was set to always say mysql database instead of what
it really was, sqlite or mysql.
2015-07-23 14:31:36 -05:00
graywolf336
890923fca7 Don't use limit with sqlite. Fixes #89
Gives a strange error when using limit with sqlite.
2015-07-23 14:09:55 -05:00
graywolf336
44ce2c7cfe Fix the spacing/line ending on the readme I accidently did. 2015-06-30 16:13:33 -05:00
graywolf336
07938209bb Forgot to save the readme....whoops. 2015-06-30 16:11:48 -05:00
graywolf336
c9696b8671 Update the readme 2015-06-30 16:08:47 -05:00
graywolf336
fec666a6f7 Add tabcomplete to transfer. Closes #77
Finally complete the tab complete on the transfer, fully completes
everything up until now.
2015-06-30 15:09:55 -05:00
graywolf336
c4c2b30820 After transferring update the signs. 2015-06-30 14:27:44 -05:00
graywolf336
2373338770 Fix #83, transfers failing due to various errors
The transfers were failing due to errors. Also fixed an api issue where
the method wasn't very descriptive.
2015-06-30 14:15:35 -05:00
graywolf336
93d8b88bb1 Add a command option to force jailing never played 2015-06-30 12:48:33 -05:00
graywolf336
c22f1ec22d Add tab completion to the jail command #77
Tried to make the tab complete pretty smart, there probably are several
issues with it but first round of testing should be good to go!
2015-06-29 22:46:36 -05:00
graywolf336
a602bf77fe Fix jail check not tab completing online names 2015-06-29 22:44:46 -05:00
graywolf336
3225c6e853 Revert the change to the JailSignsCommand 2015-06-15 09:15:53 -05:00
graywolf336
45a0c79bdd Fix inventory not being stored in chests of a cell 2015-06-12 23:09:08 -05:00
graywolf336
e77cda996e Gotta remember to add command arguments to the tab completion 2015-06-12 22:16:56 -05:00
graywolf336
91e74845a2 Add update to the sign commands, same as refresh. 2015-06-12 22:13:09 -05:00
graywolf336
4c7166251f Add isJailedForever to the prisoner & use it in pay 2015-06-10 16:05:24 -05:00
graywolf336
e598b0c424 Fix #82, don't jail players haven't played before
There is a configuration node which can be set to true to allow this.
2015-06-10 15:59:44 -05:00
graywolf336
312fe5105b Don't throw the async jail exception, we run it sync 2015-06-10 15:31:42 -05:00
graywolf336
806176ca1c Add the missing files, Github for windows missed it 2015-06-05 18:02:02 -05:00
graywolf336
384fa3601b New command for signs, closes #79
A new command for signs. Refreshing them, cleaning them, and verifying
them. Changed up some internal apis, if you were using them sorry for
breaking it. Also, really update the signs when we jail someone who is
offline via a new event.
2015-06-05 18:01:31 -05:00
graywolf336
bd1b3ec04d Update the signs on cells when someone is jailed
This change makes the signs be updated when someone is jailed, no matter
if they're online or not. #68
2015-06-05 10:47:19 -05:00
graywolf336
bcf0a46852 Fix chest being selectable if trapped and regular were next to each other 2015-06-05 10:13:48 -05:00
graywolf336
2e492ebe74 Semantic update on the a util method
The name of the method(s) says the string we are checking goes first, so
make it that way.
2015-06-04 17:18:22 -05:00
graywolf336
176fde313e Remove last test and various changes 2015-06-03 16:39:20 -05:00
graywolf336
24ed74446b Add javadoc to the hasVotedAlready 2015-06-03 16:27:17 -05:00
graywolf336
89f709390a Add api to get the build version of jail
More for future api usage for other plugins, to determine if the running
version has certain features.
2015-06-03 11:59:20 -05:00
graywolf336
68e35ed271 New method to see if a jail has an empty cell 2015-06-03 11:33:37 -05:00
graywolf336
82487805b4 Clear the sign lines before reloading
Wasn't reported yet, but if someone removed a line from the sign the old
one would still show up as we didn't clear the lines before reloading.
2015-06-03 10:40:42 -05:00
graywolf336
b91b54a9fc Don't make the string arrays each tab 2015-06-03 10:01:24 -05:00
graywolf336
1c43951a7c Clean up the getJailsByPrefix method 2015-06-03 09:25:42 -05:00
graywolf336
fd2e69cb77 Broadcast now requires a permission node, fixes #54
The permission node is granted to everyone by default, take it away from
groups you don't want it enabled on: jail.see.broadcast
2015-06-03 00:07:21 -05:00
graywolf336
98e4916a18 Fixed %prettytime% not working on forever time 2015-06-02 23:37:55 -05:00
graywolf336
5393d5556b Sort the cell list before sending them, adds #80 2015-06-02 22:28:15 -05:00
graywolf336
e92ec67ec9 No more async jailing, fixes #73 throws Exception
Added some custom exceptions to be thrown when conditions aren't met.
This might break a lot several things, will test after this build
completes but the unit tests all seemed to run fine.
2015-06-02 22:14:06 -05:00
graywolf336
cfb62eed13 Almost finish tab completion, #77 (see details)
The only commands left to enable tab completion on are:
- jail
- jail transfer
2015-06-02 12:32:34 -05:00
graywolf336
019deea43a More work on tab completion, see details.. #77
Completed:
- Jail check
- jail clear
- jail createcell
- jail deletecell
- Jail list
- jail listcells
- jail mute
2015-06-01 21:14:01 -05:00
graywolf336
73715c3d68 Try to fix an issue with sqlite, should fix #78
Not tested, so can't really tell if it fixes it or not.
2015-05-30 13:55:21 -05:00
graywolf336
d3d4572ca4 First stab at tab complete of jail commands, #77
Right now, the first option of the jail command completes and checks for
proper permission and all that good stuff. Good way to get started with
commands but that's all that has been completed right now.

Plan is that the command interface will get a tabComplete method which
all the classes that implement it will handle. Then if a tabComplete
happens on that command we'll let the command handle it, so the command
handlers don't get cluttered.
2015-05-29 16:56:02 -05:00
graywolf336
ea50ecea6b Even more javadoc fixes. 2015-05-27 12:38:44 -05:00
graywolf336
8c98977bd1 Fix some JavaDoc issues 2015-05-27 12:33:54 -05:00
graywolf336
107ac26573 Fix the language test failing 2015-05-27 12:30:12 -05:00
graywolf336
afa051b1b2 Move Data After Storage Changed, Closes #75
After someone reloads the plugin and they've switched the storage system
then put the data, if any exists, into the new storage system. This
means a player can go from flatfile to mysql or from mysql to flatfile
without having to do any manual work.
2015-05-27 12:26:31 -05:00
graywolf336
55062bc03a Reload only the configuration, not data. Fixes #67
The data shouldn't be reloaded when the plugin is reloaded.
2015-05-27 12:24:59 -05:00
graywolf336
14e006f08a We reload the configuration not data, change en.yml
When we reload the plugin we are reloading the configuration and not the
data, make that clear.
2015-05-27 12:21:48 -05:00
graywolf336
75171a7ba4 Pretty time is sign default & reload sign lines
When the plugin reloads fire an event so that other places can know when
it happens, mostly internal. Use that new event for reloading the
plugin's sign lines in the event it happens.
2015-05-27 11:34:53 -05:00
graywolf336
0a429cf311 Jail Names shouldn't be case sensitive, fixes #76
This change keeps the jail names with different cases in their names but
allows case insensitive in the commands.
2015-05-27 11:03:36 -05:00
graywolf336
f8ae4f3b80 Make subcommands case insensitive
CONFIRM should be the same as confirm
2015-05-27 10:48:36 -05:00
graywolf336
2d11239ce4 Fix all the NPE's on tests when getting a task's id
This has been bugging me for far too long, I hated seeing all those
NPE's on test results.
2015-05-27 10:36:56 -05:00
graywolf336
9b638d6360 Only load lines for signs configured, fixes #61
Don't try to load line 4 when it isn't configured in the configuration,
fixes the onload IndexOutOfBoundsException.
2015-05-26 16:25:02 -05:00