120 Commits

Author SHA1 Message Date
Bradley Hilton
eb92967e03 Fix the build 2019-04-15 12:29:00 -05:00
M Peters
7e2094830b Forgot import... 2017-06-12 18:27:27 +02:00
M Peters
56c54c08f0 Switch from File to InputStream
Fixes the failing tests
2017-06-12 18:13:25 +02:00
M Peters
99e6b37a64 Avoid deprecated loadConfiguration(InputStream)
Fixes https://github.com/graywolf336/Jail/issues/152
2017-06-10 17:49:27 +02:00
graywolf336
6c8559c39b
Try to fix #128 with sqlite. 2016-06-18 21:05:25 -05:00
graywolf336
1e241eef3c
Fix some code style issues 2016-05-31 12:38:39 -05:00
graywolf336
bd6b9adefb Fix #99, we store records by uuid now. 2016-03-22 11:22:52 -05:00
graywolf336
02fd6bf51f Move the languages to their own folder
Moving to a new translation service, so I need to do this.
2015-12-29 12:54:22 -06:00
graywolf336
63b43d1191 Fix javadoc build errors and fix #90
Attempt one at trying to fix the javadoc errors.
2015-08-18 08:49:50 -05:00
graywolf336
b99520b10b Fix long standing bug where extra nodes in data.yml would be created
There was a bug where you would "randomly" get extra nodes in your
data.yml like jailnamecells, this caused problems earlier which was
avoided by not loading invalid jails but now the real issue is fixed and
those extra nodes shouldn't appear again.
2015-07-24 12:31:06 -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
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
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
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
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
ab10bc9a4d Finish the comment...whoops I got distracted 2015-05-26 15:00:41 -05:00
graywolf336
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
graywolf336
3570a4b0ee Protect some of the constructors since we don't need more than one. 2015-02-13 14:34:38 -06:00
graywolf336
3a09144b52 Attempt to get valid connections when doing operations, should help with
reconnecting to the database after an error has occured.
2015-01-29 00:51:01 -06:00
graywolf336
72c29bb4ea Don't resave the cells if we're saving and using flatfile. 2015-01-27 18:37:04 -06:00
graywolf336
ad57ed767b Use our simple location object when loading a jail, finally resolves #41 2015-01-27 18:08:44 -06:00
graywolf336
d94b12ac40 Load the jails even if the world is not loaded, fixes #41
Also, load the plugin after multiverse.
2015-01-27 17:53:01 -06:00
graywolf336
e4a3eb80c4 Don't load a jail if the world is empty, warn them about it. #41 2015-01-27 17:37:55 -06:00
graywolf336
fdfd0bb2c9 Make the world not existing message to be more user friendly. 2015-01-27 17:27:23 -06:00
graywolf336
b780f4a483 Debug some when loading a jail, for #41 2015-01-27 17:23:13 -06:00
graywolf336
6653ccfb79 Log a severe message to the console when a jail's world is not defined.
This should help warn to warn people when their server starts and
something is wrong with the definition of their jail in the data.yml,
thanks to #40 for raising this issue even though the real issue hasn't
been found.
2015-01-26 00:27:49 -06:00
graywolf336
14b55a81f5 Fix the teleport free not sending them to the correct world. 2015-01-26 00:00:46 -06:00
graywolf336
b7adc28a8c Only save a jail that is enabled. 2014-08-20 11:45:45 -05:00
graywolf336
5734eeec4c If a world is not loaded, then don't load cells and dont enable the jail 2014-08-20 11:36:36 -05:00
graywolf336
68584639ba Add support for sqlite storage. 2014-08-19 16:54:14 -05:00
graywolf336
33528aee56 Fix the removing prisoner setting the wrong thing to null. 2014-08-19 15:04:39 -05:00
graywolf336
71a60e6ee3 Fix the spacing and clean it up. 2014-07-27 14:46:25 -05:00
graywolf336
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
graywolf336
6b8dec6c7b Work on some unit tests for #7 and reorganize part of the config. 2014-07-22 20:58:05 -05:00
graywolf336
ce1231da39 Add some debugging code. 2014-07-14 21:38:15 -05:00
graywolf336
3912dbfabc Only save the prisoners if they were changed, add that flag. 2014-07-14 18:23:29 -05:00
graywolf336
f3c2772a87 Use BIGINT for the time 2014-07-14 18:07:13 -05:00
graywolf336
fe7aabc6ea Very using the new api, some older versions are still used. 2014-07-14 16:39:01 -05:00
graywolf336
d535b758d4 Add .gitattributes 2014-06-12 10:50:53 -05:00
graywolf336
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
graywolf336
74e62be46c Use InputStreamReader when reading the default en.yml from the plugin. 2014-05-30 14:03:20 -05:00
graywolf336
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
graywolf336
0bb679329d Fix the error when saving a cell that has a prisoner. This should fix
and close #26.
2014-05-03 09:52:45 -05:00
graywolf336
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
graywolf336
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
graywolf336
f1dadaaae0 Lookup the records by username and get the UUID ourself. 2014-04-30 13:18:56 -05:00
graywolf336
a7798c9d62 Fix the javadoc on one method in JailIO being incorrect. 2014-04-29 13:24:26 -05:00
graywolf336
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
graywolf336
0981fe659f Correctly log how many prisoners were loaded. 2014-04-28 22:46:41 -05:00