Commit Graph

4115 Commits

Author SHA1 Message Date
tastybento
59fd8d94b5 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2024-06-29 15:44:56 -07:00
tastybento
58937d6353 Add 1.21 compatibility 2024-06-29 15:44:47 -07:00
TreemanKing
534fd675b3
feat: new flag - handle tamed animals (#2412) 2024-06-24 07:31:53 -07:00
tastybento
24fa4fe8d3 Fix for #2413 - support for 1.20.1 2024-06-23 17:18:29 -07:00
tastybento
2f9e3c42fd
Better migration of databases relates to #2404 (#2411)
Also, adds support for 1.21.
2024-06-19 09:08:07 -07:00
tastybento
09c5cbb449 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2024-06-14 21:43:23 -07:00
tastybento
894b063694 Split out the Paper-only event 2024-06-14 21:43:13 -07:00
tastybento
d23f15f16f
Rework tests to not break so much with constant definitions (#2407) 2024-06-14 18:49:08 -07:00
tastybento
96564275a8
Support nms pasting (#2406) 2024-06-14 13:10:01 -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
156c3da3bb
Add command to teleport users. (#2399)
* Add command to teleport users.

* Fix bugs
2024-06-02 18:23:23 -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
f68af5529f Remove concurrent hashmap because it cannot handle null values.
Need to use another approach if concurrency is required.
2024-06-02 18:04:54 -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
Minecraft_15
961a35bace
Corrected translation errors (#2391)
* Delete src/main/resources/locales/zh-CN.yml

delete old language file(zh-CN)

* Readd language zh-CN.yml

Corrected translation errors
2024-06-02 08:26:38 -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
250c7950f9 Fixes for Island cache issues
Fix the size check and the new island creation.
2024-06-01 11:42:22 -07:00
tastybento
01dcd6ecc6
Adds more options around getting islands and caching (#2394)
Sometimes, there is a need to get an island once but not cache it. For
example, when loading addons they may need to scan all the islands, but
not have them cached.
2024-06-01 08:37:37 -07:00
tastybento
475f6372e2 Added defensive code for JUnit testing 2024-05-31 17:11:43 -07:00
tastybento
8e68349004 Add way to bypass code during testing, if required. 2024-05-31 17:04:13 -07:00
tastybento
fc9b00233b
Sends messages only once to all players on the island (#2389)
Was sending to visitors and all players so visitors saw it twice.
2024-05-26 17:56:46 -07:00
tastybento
1fd4a9043f
Protect pumpkins from being sheared (#2388)
Requires Paper
2024-05-26 17:45:45 -07:00
tastybento
ee3b0bfcc2
Update en-US.yml (#2387) 2024-05-26 17:36:45 -07:00
tastybento
35704b3fd3
Update zh-CN.yml (#2386) 2024-05-26 17:34:01 -07:00
tastybento
60fa60372d Fix tests 2024-05-26 17:27:41 -07:00
tastybento
8b0a5a3d0b Do not load all players just to get a name. 2024-05-26 17:01:02 -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
BONNe
885d2449d9
Fixes creeper ignation by visitors (#2375)
This fixes a long-standing bug which was introduced with a code that prevented hostile entities from targeting visitors.  

As player was not a target for creeper it allowed it to explode.

This code change prevents visitors from igniting creepers as I do not see a reason why we should allow them to ignite them, while still protecting from griefing. 

Addresses issue reported in #2372
2024-05-24 07:22:20 -07:00
tastybento
888b485f82 Fixes #2376 2024-05-24 07:18:39 -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
50276cb8e5 Abstract out getting and setting islands by ID
This is preparation for potentially making the cache smaller and pulling
from the database instead when required. However, there are issues with
this because some calls can result in loading the whole database anyway.
2024-05-18 22:49:20 -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
2fc3396a8f Remove debug code that slipped in. 2024-05-18 20:08:21 -07:00
tastybento
99717f5b60
Reduces storage of Island objects in the cache #2360 (#2369) 2024-05-18 19:48:42 -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
45e5621d4c
Update README.md 2024-05-16 17:22:07 -07:00
tastybento
f536a13c59 Back to 1.20.6 2024-05-12 17:20:14 -07:00
tastybento
f4780659e3 Downgrade to 1.20.5 to get tests to pass.
Tech debt - need to reword tests for 1.20.6
2024-05-11 13:21:00 -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
d288528a17
2356 better deletion (#2364)
* Fix 1.20.4 backwards compatibility

* Improve deletion speed and memory usage
2024-05-11 11:07:47 -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
4a0d44c035
Implement new API for ItemsAdder item deletion (#2353) 2024-05-11 08:49:47 -07:00
tastybento
b8e1f33800
Fixes #2352 obsidian scooping NPE (#2358) 2024-05-07 21:25:58 -07:00
tastybento
d8891796cd JavaDoc fixes and fix for Particle enums 2024-05-05 21:28:04 -07:00