5393d5556b
Sort the cell list before sending them, adds #80
2015-06-02 22:28:15 -05:00
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
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
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
12f35a01bf
Don't resave cells on stopping creation, fixes #74
...
We was saving everything again when the players stop creating anything,
this was causing issues with duplicate cells when using any storage with
SQL (due to insert and no primary key).
Also, added a hasChanged to the cell class which will prevent resaving
things in sql if it hasn't changed.
2015-05-26 14:57:38 -05:00
3eedc4904f
[BREAKING] Change up cell selection.
...
In the PrisonerManager you can now provide either AnyCell or NoCell and
it'll select a cell or not based upon the provided one. This is breaking
because it changes the required types in the methods and the new cells
don't have anything implemented and throw exceptions.
2015-05-22 15:41:54 -05:00
307a096acc
Add an interface for the Jail Pay Manager.
...
Further API work.
2015-05-21 14:30:49 -05:00
5273a973a1
Merge pull request #65 from stevoh6/patch-3
...
Use the pretty time format for the the jail check command.
2015-05-07 12:32:54 -05:00
41717678c5
Git shows these files as changed
...
I assume this is due to line endings not being the same across all files
due to them being created on different operating systems.
2015-05-07 11:27:18 -05:00
e263463215
Update JailCheckCommand.java
...
- show pretty time format
2015-04-30 23:40:49 +02:00
88cc080f60
Add set to the jail time command and unit test it.
2015-02-20 23:10:05 -06:00
0d9ed022f3
Only try to jail in a cell if that jail has cells, resolves #51
2015-02-16 15:00:14 -06:00
3570a4b0ee
Protect some of the constructors since we don't need more than one.
2015-02-13 14:34:38 -06:00
9ecfb92252
Add a method to jail someone forever, resolves #49 .
...
Include -i in the command and the player will be jailed forever.
2015-02-13 01:29:18 -06:00
64f6ce8a64
Don't allow jail vote for people not online and players with permission
...
which disallows them being jailed.
2015-02-12 23:37:05 -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
f56ed7068d
Fix capital letters in Jail Names in creating cells working, fixes #47
2015-02-09 22:15:06 -06:00
d819bd7d37
Reimplment automatically jailing in cells, fixes #42 .
...
New config option if you want to disable this option.
2015-02-09 22:08:59 -06:00
87acaf1538
Implement %prettytime% on signs, time in a pretty format. Adds #35
...
The variable of %prettytime% will be replaced on signs and also a nice
format on the status message will be added.
2015-01-27 19:21:42 -06:00
727ff30d8b
Save everything when someone stops creating something.
2015-01-26 01:24:32 -06:00
c65ca2b0ff
Fix the permissions not being added to the jail.command.*, fixes #38
2015-01-25 23:38:46 -06:00
cabec7791e
Add the missing s on the permissions for JailListCells, fixes #39 .
2015-01-25 23:15:51 -06:00
4567a713ec
Add a temporary help command, will be my next thing to add.
2015-01-07 02:01:17 -06:00
71a60e6ee3
Fix the spacing and clean it up.
2014-07-27 14:46:25 -05:00
f89de50d75
Implement an option to jail in the first open cell, -a. Closes #29
...
This feature adds a new option to the jail command `-a` which can be
used in place of `-c` if you don't want a specific cell. This option
will jail the player in the first open cell in the jail, thus
eliminating the need to know cell names.
2014-07-27 14:37:46 -05:00
34acf4bbaa
Work on the commands help and usage, sync with the wiki pages.
2014-07-25 00:10:26 -05:00
cac81f0420
Move clearforce into clear and use -f (-force) to forcefully do it.
...
It does still require the permission `jail.command.jailclearforce` and
if it isn't provided then it will fall back to regular clearing.
2014-07-24 23:29:53 -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
6b8dec6c7b
Work on some unit tests for #7 and reorganize part of the config.
2014-07-22 20:58:05 -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
1c92f90ccc
Update notifications! For dev, stable-dev, and bukkit channels! :)
2014-07-21 18:17:30 -05:00
1181f33693
It is jail createcells not jail cellcreate
2014-07-15 20:19:35 -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
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
f1dadaaae0
Lookup the records by username and get the UUID ourself.
2014-04-30 13:18:56 -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
ad9c70cbbf
Readd the method I removed and also change the cells to uuid.
2014-04-29 10:53:36 -05:00
a3d9a54ff0
First attempt to use UUID, not tested one ounce.
...
And I imagine the unit tests are going to fail.
2014-04-21 22:58:15 -05:00
4ade1bcf38
Implement Jail Pay, this closes #11
2014-03-20 15:33:42 -05:00
fe7cb9f5a5
Add a new command /jail time
which has easy access for add/subtract
...
time from a prisoner's sentence.
This command could be useful for commandblocks or something else, as it
does not need a player context. This closes Bukkit Dev Ticket:
http://dev.bukkit.org/bukkit-plugins/jail/tickets/432/
2014-03-15 14:40:50 -05:00
c478ef2544
Actually reload the jail sticks when we reload the plugin via command.
2014-03-14 15:20:50 -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
39cc95b96d
The jail stick is now usable.
...
Closes #16 .
2014-03-08 23:39:11 -06:00
2ec69c5650
Finish adding the jailrecord command, this closes #12 .
2014-03-06 18:10:53 -06:00
e54dbc8a8c
Fix the spacing on the listcells
2014-02-16 16:53:41 -06:00
43eb68811b
Create cell is not createcells
2014-02-16 16:05:42 -06:00
620c57cdc9
Add a PrePrisonerTransferredEvent #9 .
2014-02-15 00:52:25 -06:00