Commit Graph

436 Commits

Author SHA1 Message Date
HunterGPlays 6885fc0446 Added drag listener 2016-04-24 06:09:20 +01:00
Kashike 993ff3c833 Merge pull request #152 from MinelinkNetwork/fix-deserialization-errors
Fix deserialization errors introduced by previous commit.
2016-03-08 19:29:16 -08:00
Byteflux 0562425271 Fix deserialization errors introduced by previous commit.
This addresses an issue where items do not retain integer-based item meta
such as repair cost, enchantment levels etc.
2016-03-08 19:27:56 -08:00
Kashike 417277acfb Merge pull request #148 from MinelinkNetwork/fix-serializing-nested-maps
Fix StackOverflow when attempting to serialize ItemMeta
2016-03-08 14:10:42 -08:00
kashike cf4678a727 Bump to 3.5.8-SNAPSHOT 2016-03-08 14:11:35 -08:00
Byteflux 415b06a4c3 Fix StackOverflow when attempting to serialize ItemMeta with nested maps.
This removes the JSON library included with PlayerVaults and uses
SimpleJSON included with Bukkit.
2016-03-08 13:51:12 -08:00
Trent Hensler 1421c2bf15 Remove unnecessary teleport handler. 2016-02-08 09:45:08 -08:00
kashike 06bb39d345 Oops. Fix NPE 2016-02-06 12:13:41 -08: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 32e7caf958 Make sure in vault map is populated and queried with UUIDs, not names.
Resolves #116
2015-09-15 14:16:18 -05:00
drtshock 403f2bd75a Add debug for closing inventories on shutdown for #113. 2015-09-10 14:38:15 -05:00
drtshock 272dc755ce Correct if vault exists check. Fixes #103. 2015-08-15 21:15:48 -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 67b11db40d 3.5.6 release. 2015-07-09 14:17:34 -05:00
Kashike a71b09fe7c Merge pull request #89 from turt2live/travis/fix-convert-command
Move UUID caching code to convert command execution. Addresses #88
2015-07-08 17:18:23 -07:00
turt2live 17579896f1 Move UUID caching code to convert command execution. Addresses #88
Instead of loading the cache up front (potentially taking minutes) we now
move the UUID caching to the command execution. Although this may increase
the command execution time it does reduce the time spent starting the
server and furthermore saves a little bit of memory from being used.

The cache is only seeded if the UUID provider has not been initialized. If
it has, then the seeding does not occur.
2015-07-08 18:04:51 -06:00
drtshock 2c8691bcd8 Add lots of debug.
Hopefully help give some insight into #88.
2015-07-07 15:20:02 -05:00
drtshock b3ed171291 Add build number into plugin.yml version. 2015-07-07 15:09:35 -05:00
kashike 8980bc5fac Fix NPE in Listeners 2015-06-28 18:58:41 -07:00
kashike f51efcfab2 Quick cleanup 2015-06-27 09:37:10 -07:00
vemacs 26781df8f4 Update cache on delete, fixes online user vault deletion 2015-06-27 08:49:22 -07:00
vemacs eeb72ed1bb Only update if already in map 2015-06-26 14:31:19 -05:00
vemacs bcf9aacd3b [Somewhat tested] Implement asynchronous save operations and cached read operations 2015-06-26 11:18:46 -04:00
drtshock 81c9f83d65 3.5.6-SNAPSHOT 2015-06-24 14:33:05 -05: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 94c049f77c Revert "Attempt to fix #73. Not confirmed as a fix."
This reverts commit c2fa317e16.
2015-06-24 14:32:07 -05:00
kashike c2fa317e16 Attempt to fix #73. Not confirmed as a fix. 2015-06-08 12:27:16 -07: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 89c57dc76d Use Runnable. 2015-05-21 10:41:31 -05:00
drtshock 24f423d2f3 Add configurable blocked items list. 2015-05-21 10:39:34 -05:00
drtshock ab46f49b0f Allow deleting offline player's vaults.
Not sure why this was restricted to online players.
2015-05-16 20:18:42 -05:00
drtshock ece03993fe 3.5.3 2015-05-08 09:20:33 -05:00
drtshock e931488c28 Store target player's UUID when opening other vault. Fixes #68. 2015-05-08 08:59:18 -05:00
drtshock 9fe5c3ef56 Ignore cancelled events. 2015-04-29 08:51:35 -05:00
drtshock ec609f329e Add missing key to default lang file. Resolves #65. 2015-04-28 11:32:43 -05:00
drtshock 0623b4cdd1 Make sure player is online before checking permissions. Fixes #64. 2015-04-28 11:30:27 -05:00
drtshock 30b76349a2 Add pvreload command. Resolves #32. 2015-04-27 14:27:49 -05:00
drtshock 573f58ee2f Make help message configurable. Resolves #52. 2015-04-27 14:22:56 -05:00
drtshock 12e25f0eb2 3.5.2 release. 2015-04-27 14:16:29 -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 8375d71e3e Fix sign usage permissions. Resolves #54. 2015-04-27 12:31:43 -05:00
drtshock e14958f2e2 Separate permission for vault commands. Resolves #59.
Permission is playervaults.commands.use and defaults to true to keep current functionality.
2015-04-27 12:10:48 -05:00
drtshock f97ba1e694 Reformat. 2015-04-27 12:03:11 -05:00
drtshock d690786803 Build against Spigot 1.8.3 and VaultAPI 1.5 2015-04-27 11:52:23 -05:00
drtshock 248c5f193b Add option to have player name and vault number in vault title. 2015-04-27 11:50:16 -05:00
Joshua Popoff b8b7c24d9d add a config option to disable backups. closes #45 2014-11-24 00:40:15 -08:00