Phoenix616
b22d8fd95d
Move cache to own class in Breeze package
2018-03-12 21:01:03 +01:00
Phoenix616
1276c6f031
Add method to get the last account information from a shortened name
2017-11-17 22:08:06 +01:00
Phoenix616
29ef7f25aa
Fix errors when server economy account is not defined or invalid
2017-11-15 21:13:07 +01:00
Phoenix616
2d45dcdac0
Get rid of expensive calls to Bukkit#getOfflinePlayer with a username
...
This changes events to store the database Account instead of an OfflinePlayer and deprecates any event method that uses/returns OfflinePlayer. This is necessary as Bukkit#getOfflinePlayer(String) queries Mojang for the UUID when the user was not found in the local cache. As we already store this information (name to UUID mapping) in our database we should not have no need to rely on querying Mojang. (This might make transactions fail for shop owners that haven't played before but that shouldn't really be an issue in most cases)
2017-10-29 23:50:24 +01:00
Phoenix616
e81077143e
Also check for full account name permission
2017-09-26 15:39:08 +01:00
Phoenix616
1d80edbf9b
Get rid of google dependencies
...
Mostly replaced with Java 8 features and our own cache
2017-09-23 15:19:00 +01:00
Phoenix616
4a71af39af
Return account by normal name if name is longer than 15 cars (DevBukkit-1217)
2017-07-09 17:30:26 +01:00
Phoenix616
b3b9e690dd
Fix NPE when server economy account info can't be found (DevBukkit-1216)
...
Also add a warning to the startup if that happens
2017-07-09 17:00:31 +01:00
Phoenix616
0525c70452
Rewrite NameManager to support multiple short names per user
...
This should fix the issue where the player's short name on the shop sign does not reflect the actual player's name. This works by storing every uuid-username combination together with the associated short name and the last time the player logged in with that combination.
2017-07-01 17:14:41 +01:00
Phoenix616
7271cebd91
Properly use the plugin's logger
2017-06-30 21:00:30 +01:00
Phoenix616
0b65a7cc92
Rewrite (and document) the NameManager
...
This should fix issues with how name changes are handled and also prevent short names of different players from clashing. It also uses guava caches instead of maps now with a configurable cache size
2017-06-30 20:28:18 +01:00
L4BORG
24eb1b1e19
Economy fixes, fix for https://github.com/dmulloy2/ChestShop-3/issues/11
2016-10-13 18:11:23 +02:00
Dan Mulloy
e186635484
Try to fix a few more errors
...
Fixes #7
2016-09-20 15:45:18 -04:00
Dan Mulloy
050ce61347
Try to fix (or just ignore) a weird null pointer
...
Fixes #6
2016-09-20 15:40:41 -04:00
Dan Mulloy
a13b2c9070
Fix a few NPE's caused by null accounts
...
Thanks @mibby
2016-07-07 12:15:43 -04:00
Andrzej Pomirski
7bc452e203
Switch to thread-safe DTOs
2015-07-05 21:56:42 +02:00
Andrzej Pomirski
02673dec94
Make DB code nicer
2015-05-22 13:26:07 +02:00
Andrzej Pomirski
13d83ec92a
Fix Essentials' Eco problem
2015-03-21 16:11:33 +01:00
Andrzej Pomirski
28f9f08987
Fix money being transferred to the old username
2015-03-11 18:02:30 +01:00
Andrzej Pomirski
8c77057703
Fix the issue with name changes
2015-02-04 20:14:35 +01:00
Andrzej Pomirski
c646dd16a0
FOUND THE CULPRIT.
2014-08-13 17:22:52 +02:00
Andrzej Pomirski
bed883f7ae
A small bugfix
2014-07-28 20:51:04 +02:00
Andrzej Pomirski
6bbfc93b27
Fix the "value already present" error
2014-07-22 22:03:50 +02:00
Andrzej Pomirski
d1a79425ed
Automatically drop the username on leave
2014-07-03 18:49:12 +02:00
Andrzej Pomirski
f6457e3d47
Add alternative fallbacks
2014-06-22 14:32:50 +02:00
Andrzej Pomirski
9fa2f92ef8
Switch Vault from names to UUIDs
2014-06-14 20:46:59 +02:00
Andrzej Pomirski
bd0a40e16c
Cache names in NameManager
2014-05-06 11:55:33 +02:00
Andrzej Pomirski
554c0291b5
Add a fake Admin Shop account
2014-04-12 16:52:21 +02:00
Andrzej Pomirski
b37ae0fbc4
UUID changes
2014-04-12 14:22:34 +02:00
Andrzej Pomirski
4107b10f4b
More UUID changes
2014-04-12 13:57:39 +02:00
Andrzej Pomirski
22d3c7f575
Remove unnecessary imports
2014-04-11 17:23:04 +02:00
Andrzej Pomirski
2cd4a1fb45
Fix the NPEs
2014-04-11 17:17:20 +02:00
Andrzej Pomirski
dd22c709e0
This should cover the basics of UUID change
...
WARNING: Users with names longer than 15 characters will not be able to
receive money as long as they do not join the server
2014-04-10 22:52:21 +02:00
Andrzej Pomirski
da7e236c0e
Use ORMlite for the UUID->name mapping
2014-04-10 21:52:05 +02:00
Andrzej Pomirski
4c65fbf9ef
Start preparing for 1.7.6
2014-04-06 19:51:47 +02:00
Andrzej Pomirski
bc218746ae
Change the shell
2014-04-06 19:51:30 +02:00