26 Commits

Author SHA1 Message Date
graywolf336
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
graywolf336
6ddabe39ad Fix the failing tests. 2014-08-19 14:43:03 -05:00
graywolf336
85e1106b42 Fix some spacing issues introduced by the last commit. 2014-08-19 14:34:02 -05:00
graywolf336
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
graywolf336
71a60e6ee3 Fix the spacing and clean it up. 2014-07-27 14:46:25 -05:00
graywolf336
1c92f90ccc Update notifications! For dev, stable-dev, and bukkit channels! :) 2014-07-21 18:17:30 -05:00
graywolf336
c9b0fc8480 Fix the blacklist not working or sometimes erroring out. 2014-07-14 23:47:36 -05:00
graywolf336
88817fb9a2 If the data passed is empty, return an empty inventory. Try to fix the
latest issue reported in #26
2014-07-07 14:56:25 -05:00
graywolf336
d535b758d4 Add .gitattributes 2014-06-12 10:50:53 -05:00
graywolf336
f41ee77092 Enable checking the whitelist of breaking and placing. 2014-01-19 15:53:42 -06:00
graywolf336
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
graywolf336
f5bf76ec46 Add jail timer and jail event, count down the prisoners time. 2014-01-03 14:10:38 -06:00
graywolf336
0ceef58e73 Move the restore method to the util, makes more sense there. 2013-12-31 13:20:39 -06:00
graywolf336
4ab48b3659 Do some work on the JavaDoc 2013-12-28 19:50:55 -06:00
graywolf336
04d65088e3 First attempt at unjailing a prisoner. 2013-12-28 15:08:24 -06:00
graywolf336
e4f74e5e91 Lots of progress was made towards jailing the player.
We now handle the jailing of the players and even store their inventory.
Unjailing hasn't been tested at all yet, so that's still to do.
2013-12-27 18:19:47 -06:00
graywolf336
5e4bc77579 Add some methods to serialize an inventory to Base64 string.
Special thanks to Comphenix, @aadnk, for the code.
2013-12-27 10:37:32 -06:00
graywolf336
978bd044fe Fix the time parsing not defaulting to minutes & add another test for it 2013-12-24 19:36:14 -06:00
graywolf336
ed481ff925 Test the parsing of the time and all the variations. 2013-12-24 18:45:50 -06:00
graywolf336
c4b1eb6d1a Default the time to minutes if all else fails. 2013-12-24 18:06:38 -06:00
graywolf336
7e75f297d5 Remove some debugging code. 2013-12-24 17:56:52 -06:00
graywolf336
64301db196 Fix the regex pattern and add more tests for the default config. 2013-12-24 16:52:59 -06:00
graywolf336
0d79569c74 Add some settings management and also parse the time format.
This allows for: 30seconds, 10minutes, 3hours, or 2days
2013-12-24 12:28:40 -06:00
graywolf336
e07c657a40 Give the players a wand when starting to create a jail or cell. 2013-12-06 15:56:46 -06:00
graywolf336
3159d30aff Add a method to get the color message from a string in the util. 2013-12-06 10:28:03 -06:00
graywolf336
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