Commit Graph

84 Commits

Author SHA1 Message Date
CmdrKittens aaf98cad02 Resolve configuration resetting concern 2020-04-09 22:21:22 -04:00
CmdrKittens 55a314a5c6 Informative config migration 2020-04-09 21:42:10 -04:00
CmdrKittens 2e4fef70d9 Improve debug, and other informative messages 2020-04-09 01:54:32 -04:00
CmdrKittens 9a8538b844 Customizable default (no perms) vault size 2020-04-09 00:49:34 -04:00
CmdrKittens 2286fd7656 New config 2020-04-09 00:18:17 -04:00
CmdrKittens 1547e58b9b Add bstats 2020-03-28 22:16:00 -04:00
CmdrKittens d362c6810e Some more light cleaning 2020-03-23 21:23:05 -04:00
CmdrKittens 0272e20d60 Configurable max amount to test via perms 2020-03-17 21:35:20 -04:00
ArtelGG 0592554f0c Rework vault signs (#387)
* Rework vault signs

* Fix potential vault sign issues
2019-05-30 09:28:03 -07:00
Trent Hensler 8008663c1f Update to 1.14 in a backwards compatible way. 2019-04-28 15:48:56 -07:00
Trent Hensler f463dedee6 Update license headers in all files. 2018-12-17 20:08:56 -08:00
ArtelGG 88e0351826 Retain cross-version compatibility & cleanup (#374) 2018-12-17 19:58:55 -08:00
Trent Hensler 181bb89ac0 Rework operations to allow for owners of vaults to be Strings, which is more friendly to third party or group vaults. Fixes compatibility with FactionsUUID. 2018-12-16 22:13:13 -08:00
Trent Hensler 19b79b41a1 Stop using our own deprecated method on shutdown. Attempt to force close player's vault if they have it open while the server is shutting down. Should resolve #338 2018-03-18 12:39:37 -07:00
kashike 1611e29a4f don't use the wrong language version 2018-02-19 23:32:24 -08:00
Trent Hensler 5f115f631b Save all lang files to disk. Allow switching between languages in the config file.
This will break anyone using the current lang.yml. They'll just need to move it to lang/english.yml
2018-01-06 19:50:47 -08:00
Trent Hensler 5a338937e7 Base64 vault management 2017-12-25 02:46:14 -06:00
kashike b97f04bb97 Update for 1.12.0
Fixes #270
2017-06-08 14:24:35 -07:00
Byteflux 25120bef1a Remove async saving
Fixes #245, #223, #246, #247
2017-01-06 20:35:13 -08:00
SmellyGeek 24f4adc3ad Remove redundant "start" method 2016-12-01 18:45:41 -05:00
Trent Hensler edc6b0f8ae Fix opening of other player's vaults. Resolves #190. 2016-06-14 14:08:25 -05:00
Trent Hensler bc9d1091e1 Accept Strings as inputs instead of UUIDs.
This leaves options for other plugins to hook into us to use our vault operations. I did a first shot of this with FactionsUUID.
* This needs to be tested more in depth before being pushed to a release version as it changes how we handle a lot of our dupe checks.
2016-05-30 16:20:36 -07:00
Trent Hensler 48206f552f Remove stupid workbench command. 2016-05-30 14:37:40 -07:00
kashike aaef544ea4 Don't create new file when attempting to load cache. Fixes #107 2016-02-05 23:03:15 -08:00
drtshock 18da2bf0df Check for UUID, not name on shutdown. Resolves #113. 2015-09-15 14:33:43 -05:00
drtshock 403f2bd75a Add debug for closing inventories on shutdown for #113. 2015-09-10 14:38:15 -05:00
drtshock 444ae3d1ab Only load signs if we need to.
Large servers were having some performance issues in the blockphysicsevent in the signlistener class, this helps relieve that stress.
2015-07-25 14:21:51 -05:00
drtshock 2c8691bcd8 Add lots of debug.
Hopefully help give some insight into #88.
2015-07-07 15:20:02 -05:00
kashike f51efcfab2 Quick cleanup 2015-06-27 09:37:10 -07:00
vemacs bcf9aacd3b [Somewhat tested] Implement asynchronous save operations and cached read operations 2015-06-26 11:18:46 -04:00
drtshock a5ed2b1f4d Revert "Add CachedVaults"
This reverts commit 9cd5755d0a.
2015-06-24 14:32:12 -05:00
drtshock a2ec843599 Revert "Apparently needed to reformat."
This reverts commit 101098ae7b.
2015-06-24 14:32:10 -05:00
drtshock 101098ae7b Apparently needed to reformat. 2015-05-25 21:06:22 -05:00
Vaquxine 9cd5755d0a Add CachedVaults
Only writes vaults to file on server shutdown or player quit, rather
than every inventory close event.

Also caches for read() events.
2015-05-25 21:01:42 -05:00
drtshock 24f423d2f3 Add configurable blocked items list. 2015-05-21 10:39:34 -05:00
drtshock 30b76349a2 Add pvreload command. Resolves #32. 2015-04-27 14:27:49 -05:00
drtshock f1c30c6a37 Some more cleanup and formatting. 2015-04-27 14:09:34 -05:00
drtshock ede738019a Update vault size each time inventory is opened.
Before, the VaultViewInfo was being stored as name instead of uuid as well as not being removed when a vault was closed. This caused the same inventory to be accessed from memory each time the vault was opened after the first opening since the last restart when it would load from file. Since we are recreating the inventory each time, there will likely be a performance loss but we will update the vault title and size each time its opened. Resolves #58.
2015-04-27 14:02:51 -05:00
drtshock f97ba1e694 Reformat. 2015-04-27 12:03:11 -05:00
Joshua Popoff b8b7c24d9d add a config option to disable backups. closes #45 2014-11-24 00:40:15 -08:00
Joshua Popoff e8bbd49804 Fix unique id converstion. fixes #51 2014-11-09 01:17:39 -08:00
drtshock 9ce0d572be RIP metrics 2014-10-06 10:31:30 -05:00
turt2live 338d2cb889 Add converting framework as well as the converter for Backpack
Adds command /pvconvert <all | plugin name>
Adds permission playervaults.convert
Adds Converter interface for future converters
Adds BackpackConverter - A converter for Backpack
(http://dev.bukkit.org/bukkit-plugins/backpack/)
2014-08-31 17:10:26 -06:00
mbax feb5980a3c Reduce File creation:
No, not file creation. File object creation!
2014-08-04 23:52:57 -04:00
mbax 935b8318d1 Start update checking immediately:
Initializing the Updater class from the main thread allows the Updater
thread to begin its query before the first server tick, which is when the
scheduled task will begin. Gotta get that update!
2014-08-04 23:39:04 -04:00
mbax b8d557b769 Substantially reduce disk IO in mass destruction:
Previously, the signs config file was saved for every single change to its
contents. This works great until you have an episode of mass destruction.
Suddenly, you're getting the file saved multiple times per tick. Goodbye,
TPS. Hello, lag.

This commit replaces the functionality of the saveSigns method with
flagging the signs config as requiring a save. A scheduled task checking
for this boolean once per second allows for up-to-the-second accuracy of
the config file without substantially compromising server stability.

Lastly, the config is saved in onDisable to ensure the task hasn't missed
anything.
2014-08-04 23:30:23 -04:00
drtshock 3c122dbe59 Reformat 2014-05-28 08:22:20 -05:00
drtshock 01122e5fba Stop sending 2 failed messages. 2014-05-28 08:22:08 -05:00
Joshua Popoff 2e429ceb21 Do a bit more cleanup, and shuffle a few things around 2014-05-06 22:37:48 -07:00
Joshua Popoff b5ef633105 General cleanup of everything I can see right now 2014-05-05 12:53:26 -07:00