Commit Graph

1006 Commits

Author SHA1 Message Date
tastybento
7050973b11 Fix tests 2024-08-31 20:08:44 -07:00
tastybento
caae0af50e Added cache expiration for head getting.
Heads must be gotten within 5 seconds otherwise the cache is cleared.
Heads that have been retrieved will be kept in cache for 1 day
2024-08-31 09:50:11 -07:00
tastybento
05524ae69c Clean up prior invites #2488 2024-08-31 08:20:39 -07:00
bengibbs
86eb9f5edd Allow wandering trader interaction at any time #2484 2024-08-28 12:54:13 -07:00
tastybento
8d75bc697b Fix tests 2024-08-22 19:15:44 -07:00
tastybento
3d3965fe17 Convert placeholders for [gamemode] and [friendly_name] 2024-08-22 16:54:16 -07:00
tastybento
5df1965778 Fix test 2024-08-11 17:12:25 -07:00
tastybento
ed700a1915 Use a common method for Events so they can be changed easily. 2024-08-10 20:04:34 -07:00
tastybento
3194195009
Merge pull request #2454 from BentoBoxWorld/2436_placeholder
Added placeholder to show if a player is on an island or not
2024-08-05 17:39:30 -07:00
tastybento
ac9aa91532 Fix tests 2024-08-05 17:38:53 -07:00
tastybento
2f055b2a8e Handle nulls if they happen 2024-08-03 09:03:19 -07:00
tastybento
fc22fd23da Fix for NPE when unregistering islands via console
Issue is that console does not have a UUID to log.
2024-07-30 21:48:16 -07:00
tastybento
570fe7448e WIP Try to add protection to decorative pots. 2024-07-14 21:44:43 -07:00
tastybento
b4ecb1dadd Fix tests 2024-07-14 20:21:33 -07:00
tastybento
1c5a52de4c Added test class for candles 2024-07-14 16:23:14 -07:00
tastybento
b2d5e0b84e Add protection for Wind Charge explosions #2422 2024-07-14 15:10:32 -07:00
tastybento
cb2d0e7efd Add cache for name lookup 2024-07-05 10:19:21 -07:00
tastybento
0ffa213fd2 Adds more island cache methods. Adds tests. 2024-07-01 08:46:17 -07:00
tastybento
d23f15f16f
Rework tests to not break so much with constant definitions (#2407) 2024-06-14 18:49:08 -07:00
tastybento
86e5a02516
Fix for #2402 player record was deleted on quit (#2403)
This was due to the changes to the Player cache. On quit the cache was
cleared, but this was also deleting the player from the database.
2024-06-10 16:16:00 -07:00
tastybento
0938df8824
Added API methods for direct database loads and saves #2396 (#2398)
* Added API methods for direct database loads and saves #2396

* Fix test
2024-06-02 18:05:48 -07:00
tastybento
d831722821
Shift to using ConcurrentHashMap (#2397)
Sometimes, these calls are made async, but as they now update the cache,
there could be concurrency issues. This fixes that.
2024-06-02 08:30:40 -07:00
tastybento
affb0c263a
Added %[gamemode]_visited_island_rank% #2390 (#2395)
* Added %[gamemode]_visited_island_rank% #2390

* Fix test
2024-06-01 12:25:34 -07:00
tastybento
60fa60372d Fix tests 2024-05-26 17:27:41 -07:00
tastybento
ca15740a8c
Fixes a bunch of items related to making the cache smaller (#2383)
* Fixes a bunch of items related to making the cache smaller

* Fix test
2024-05-25 22:38:53 -07:00
tastybento
5e5707f2a2
Fixes #2377, was not accounting for unknown UUIDs (#2380) 2024-05-24 16:43:55 -07:00
tastybento
ef58838c41
Fixes #2378 where an unknown UUID was yielding null instead of "" (#2379) 2024-05-24 15:57:46 -07:00
tastybento
e2d9c2ce34
Avoids loading islands into cache unless they are needed. (#2373)
* Avoids loading islands into cache unless they are needed.

* Adjust methods that were calling all islands

When we cached all island, this was an inexpensive call but not now. The
methods remain but pull from the database directly. The use of them were
changed to be player specific.
2024-05-23 21:42:14 -07:00
tastybento
8aba736383
Fixes breaking rooted dirt exploit (#2371) 2024-05-19 15:35:38 -07:00
tastybento
d701b7e43c
Uses Bukkit version method instead of class names (#2370)
* Uses Bukkit version method instead of class names

See https://forums.papermc.io/threads/important-dev-psa-future-removal-of-cb-package-relocation.1106/

* Fix tests

* Fix server compatibility reporting issue with Paper

* Remove unused import
2024-05-18 21:47:09 -07:00
tastybento
290158e6ef
Allow NPC's to hit players (#2368)
* WIP for debug only

* Allow attacks from NPC's
2024-05-18 11:07:59 -07:00
tastybento
7126e837ed
Admin command updates (#2367)
* Enables tp'ing to specific islands of a player

* Admin delete command. Fixes to admin tp command.
2024-05-16 21:02:45 -07:00
tastybento
f536a13c59 Back to 1.20.6 2024-05-12 17:20:14 -07:00
tastybento
aad50eab38 Just use null. 2024-05-11 13:03:50 -07:00
tastybento
24d81da907 Update to latest 1.20.6 API for PlayerDeathEvent 2024-05-11 12:55:14 -07:00
tastybento
83698c267f
Purges based on team members all being offline for too long (#2362)
* Purges based on team members all being offline for too long

* Fix to riff off real team members not trusts and banned as well
2024-05-11 08:50:28 -07:00
tastybento
52a280dc0b
Remove an unused Map in cache. (#2361) 2024-05-11 08:50:03 -07:00
tastybento
b1fe76c45d
Multipaper (#2343)
* Switch to use database for team invites.

* WIP multipaper

* Fixes teams. Test still need to be fixed.

* Islands are now updated correctly across servers.

This build has a lot of debug in it!

* Fix tests

* Remove debug

* Remove primary island listing

* Version id

* Fix team management and ranks

* Removed debug

* Handle island deletion better

* Island deletion across servers.

* Fix bug with MythicMobs changes #2340

* 2.4.0

* Load of debug - trying to solve the settings slowness

* Debug debug

* Bug found - addPlayer being called instead of getPlayer

* Uncomment code after debug

* Fix tests
2024-05-04 22:27:58 -07:00
tastybento
e33823d0c0 Fix tests 2024-04-29 21:37:08 -07:00
tastybento
6949432cb6 1.20.5 compatibility. Not all backward compatibility done
Won't run on 1.20.4 yet without stopping due to enum incompatibility
2024-04-28 17:56:02 -07:00
tastybento
69a22e917e Fix MythicMobs test 2024-04-14 22:11:41 -07:00
tastybento
3de0ff236e Fix tests 2024-04-08 23:01:45 -07:00
tastybento
5834dcbb59 Fix placeholders manager test 2024-04-08 20:15:34 -07:00
tastybento
ec60991aeb Merge branch 'develop' into 2328_team_members_can_have_islands 2024-04-01 10:59:30 -07:00
tastybento
1215a43766 Add feature to limit blueprint availability. 2024-03-31 17:29:18 -07:00
tastybento
2b19d43c85 Remove restrictions on having multiple islands for team members.
Added API to enable checking for teams on islands easier.
2024-03-29 19:38:44 -07:00
tastybento
44454f5854 Adds support for multi islands to the admin range command 2024-03-24 18:44:24 -07:00
tastybento
6599e3de80 Sort player's islands by age so they are always in the same order. 2024-03-21 19:20:31 -07:00
tastybento
d77c94c30c Fix #2320. Enables hiding of flags when in another world
The world was being taken from the user's location not the panel's world
2024-03-16 10:04:28 -07:00
tastybento
40e96b9169 Remove useeless eq 2024-03-15 18:53:08 -07:00