Commit Graph

69 Commits

Author SHA1 Message Date
games647 86ff20b6c9 Replacing old inventory protecting with safe packet modifications using ProtocolLib.
Instead of clearing the inventory of players and storing it's contents in a file, we now prevent
the server from sending the inventory packet if the player is not logged in. The player will
see a empty inventory, but has still his items stored on the server. Therefore we don't
need to modify the player's inventory and we won't make any inventory corrupted.

Fixes Xephi/AuthMeReloaded#203,
Fixes Xephi/AuthMeReloaded#193,
Fixes Xephi/AuthMeReloaded#191,
Fixes Xephi/AuthMeReloaded#148

Remove dead code + Fix empty inventory on the unregister command

Fix NPE if ProtocolLib isn't enabled or installed
2015-10-03 10:48:40 +02:00
DNx5 5247b5aa2c fix cache folder not removed 2015-09-20 22:55:44 +07:00
DNx5 e1893ce85b ups, forgot to put inventory. 2015-09-20 11:42:41 +07:00
DNx5 4288fa29b6 update 2015-09-20 09:26:29 +07:00
DNx5 b1276da416 protect inventory only for registered player 2015-09-20 09:18:30 +07:00
DNx5 350ab53563 update base64 2015-09-20 08:44:30 +07:00
DNx5 4ec548cb8d added null check, #209 #210 2015-09-19 13:27:31 +07:00
DNx5 221b32744c fix string concatenates performance 2015-09-15 22:44:40 +07:00
Gabriele C 026d84427b General npc support, fixes and enhancements 2015-09-15 16:33:32 +02:00
DNx5 3620b712b7 improve DatabaseCalls, 2015-09-15 14:38:55 +07:00
DNx5 7c56dec476 change all usage of getOnlinePlayers 2015-09-14 19:50:32 +07:00
DNx5 0768642e85 cleanup Settings 2015-09-14 18:58:37 +07:00
DNx5 9736e4c207 init instance at the top, to avoid problems. 2015-09-14 04:32:12 +07:00
DNx5 a4fd60a6f6 fix cache, still not add null check. 2015-09-14 03:45:09 +07:00
DNx5 576ff59fcd replace cache with Json 2015-09-13 22:08:18 +07:00
DNx5 08d72785b4 improve inventory cache method 2015-09-10 13:29:11 +07:00
DNx5 afeb359b73 cleanup & improvements 2015-09-09 01:28:27 +07:00
Gabriele C 217c217d13 Stuff 2015-08-22 16:34:06 +02:00
Gabriele C c12e24d0f8 Added stacktraces to find out what's the problem -_- 2015-08-21 23:35:44 +02:00
Gabriele C acbae36ddf Spaces in pom + optimizations 2015-08-02 14:22:34 +02:00
Gabriele C 62e3bc4f11 Fixed non closed reader 2015-08-01 01:06:42 +02:00
Xephi59 9c42be39d8 meta 2015-07-31 00:23:30 +02:00
Gabriele C 88530542ac Fixes 2015-07-28 17:06:54 +02:00
Gabriele C 47211ab803 Code cleanup 2015-07-28 02:57:50 +02:00
Xephi59 4c2fad3643 Fix LowerCase issue 2015-07-23 16:23:25 +02:00
Xephi59 480db6816f Synax 2015-07-20 02:41:14 +02:00
Xephi59 0fbf57cf1a Don't Wait ! 2015-07-15 18:05:17 +02:00
Xephi59 5660ccc300 Fix FileCache ... Sleeping is stupid x) 2015-07-13 01:15:18 +02:00
Gabriele C b87768478d fixed conflict 2015-07-10 22:28:43 +02:00
Maxetto bb9f81f335 Sometimes I'm sleeping 2015-07-10 16:33:07 +02:00
Maxetto ae1b074725 192.168.0.1! 2015-07-10 16:26:04 +02:00
Xephi59 63a90abec1 Change how PlayersLogs work - Change how reload work 2015-07-10 12:00:26 +02:00
Xephi59 7a4550246f Fix Fly and GameMode 2015-07-09 18:04:43 +02:00
Xephi59 f4f1f76e25 Fix and performances improvements 2015-06-30 00:47:25 +02:00
Xephi59 d84cd6549b HashMaps need to be Concurrent 2015-06-29 03:02:07 +02:00
Xephi59 030e9b599e Dramastically increase performance
Maybe fix low tps :O
2015-06-27 04:19:59 +02:00
Xephi59 6d84cdabe7 Fix Attribute problem 2015-06-17 21:48:38 +02:00
Xephi59 4bb9dc53f1 Fix inventory growth 2015-06-11 00:22:59 +02:00
Xephi 514d5bfe6e Fix Item unstacking, disable customAttributes by default 2015-05-26 13:11:10 +02:00
Trojaner fd5202748c Fix NPE when onPlayerJoins occurs
When #addLimboPlayer(Player player) is called, the player is put into the list with his real name, but when #getLimboPlayer(String name) is called, its looking for the lowercased name, causing a NullPointerException
2015-05-02 01:59:08 +03:00
Xephi a80792d947 LowerCase expected 2015-04-27 12:52:06 +02:00
Xephi 26f63ba908 FileCache ... as always 2015-04-23 16:56:15 +02:00
Xephi a8795abc23 Try to synchronise these task to avoid some problems 2015-04-23 16:10:09 +02:00
Xephi 6d90be5e58 oh.. don't want to compile? Ok ... BEEM ! Initialised ! 2015-04-23 10:41:56 +02:00
Xephi a5e6a8fa12 We need to catch some rares exceptions ! 2015-04-22 23:36:20 +02:00
Xephi 5548004fd0 Some Fix on FileCache 2015-04-21 17:41:46 +02:00
Xephi 84cf1a6627 Re-ignore case for name, Security issues T.T 2015-04-21 16:22:12 +02:00
Xephi59 d0234c182c Try to fix a problem with attribute ? 2015-01-08 20:07:05 +01:00
Xephi 3f89304aed Fix Cache 2014-09-24 18:55:11 +02:00
Xephi c88b2be3a3 Catch some exceptions can occured here 2014-09-21 04:14:48 +02:00