Commit Graph

1325 Commits

Author SHA1 Message Date
39d2f1a72c chore: remove uses of deprecated Permissions class and add javadoc notes ()
- Closes 
2023-01-15 14:08:59 +01:00
1d201b04ba chore: Update a few deprecations () 2023-01-13 17:48:13 +01:00
e887a59158 Officially deprecated BukkitPlayer#BukkitPlayer() ()
* Officially deprecated BukkitPlayer#BukkitPlayer()

* Address review feedback
2023-01-12 10:03:11 +01:00
4aa7bc51bc Include missing javadoc option 2023-01-11 22:11:11 +01:00
0f0030916f Add source documentation to javadocs and add dependency tab ()
Get the most out of javadocs
2023-01-11 18:25:51 +01:00
120bf37196 Fix dispensers loading Legacy Material Support ()
Fixes https://github.com/IntellectualSites/PlotSquared/issues/3883
2022-12-23 09:08:38 +00:00
f3bc504a6f refactor: adjust specific Nullable annotations used () 2022-12-02 12:39:38 +00:00
ee8902154a Release 6.10.4 2022-11-16 11:26:03 +01:00
b5bc1988e5 feature: implement road flags as widely as seems reasonable ()
* feature: implement road flags as widely as seems reasonable
 - Closes 
 - Any further road flag implementations would be very specific from what I can gather, and thus the gist of  is now implemented

* Add javadoc since tag

Co-authored-by: Alexander Brandes <mc.cache@web.de>

* Create util class for method

Co-authored-by: Alexander Brandes <mc.cache@web.de>
2022-11-15 19:07:38 +01:00
2147012beb chore: deprecate paper 1.13 listener as P2 effectively doesn't support 1.13 () 2022-11-14 22:58:05 +01:00
52bb561689 fix: attempt to recover from IllegalStateException when restoring block tags ()
- Fixes 
2022-11-14 16:47:24 +01:00
55c8a590e7 Fix item thrower/owner can be null ()
fix: item thrower/owner can be nuill
 - Fixes 
2022-11-12 17:10:21 +01:00
e0762f63a8 chore: Replace paper reference in favor of bom 2022-10-15 16:04:30 +02:00
9f3850000c fix: adjust nullability checks for shulkers in the kill road mobs task ()
- Fixes 
2022-10-15 15:26:14 +02:00
e244527538 Make more complex patterns work correctly ()
allow more complex patterns to work correctly
2022-10-13 19:16:19 +02:00
d5445cfbef Don't kill owned road entities (leashed / named) () 2022-10-10 17:41:25 +01:00
49b19e0eaf Check proper locations on PortalCreateEvent ()
check proper locations on PortalCreateEvent
2022-10-08 15:13:11 +02:00
5786e8cc7a refactor: replace guava's Iterables with Java's stream API () 2022-10-03 21:51:05 +02:00
8deeef4f7d Add allay to animals ()
add allay to animals
2022-09-21 16:18:34 +02:00
9b0b071c0c Add GLOW_BERRIES to VineGrowFlag () 2022-09-21 16:18:18 +02:00
476f3d328d feature: add flag for beacon effects of other plots ()
* feature: add flag for beacon effects of other plots

Took 7 minutes

* fix: don't add the beacon effect flag if the platform is not paper

Took 2 minutes

* fix: creating consistency in documentation

Took 7 minutes

* feature: add global paper setting for the beacon-effect

* fix: description of the plot flag and rewrite of the listener

* fix: renamed flag and added road support

* fix: renamed flag and changed flag functionality

* fix: added spigot fallback listener and fixed NPE

* refactor: Address checkstyle violations

* addition: remove beacon effects when player leaves a plot

* fix: updated javadoc and fixed usage of the PlotListener#addEffect method

* chore: Run license updater

Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
2022-09-05 20:06:37 +02:00
986812b9e4 chore: make snow set more future-proof () 2022-08-19 13:41:04 +02:00
77bce43ace fix: replace usages of snow tag ()
* replace usages of snow tag

* powder snow is 1.17+
2022-08-10 11:03:20 +02:00
cba1927cc7 Items no longer despawn on road when natural_mob_spawning = true and kill-road-items = false ()
* fix: handling of item despawning on road

* chore: de-duplicate check

* chore: check in PaperListener for consistency
2022-08-10 10:22:19 +02:00
3d19c5c2ad perf: avoid quadratic overhead for UUID collection ()
avoid quadratic overhead for UUID collection
2022-08-08 12:50:22 +02:00
3b747ffecf Don't allow wall corals to dry () 2022-07-29 23:00:55 +02:00
ae59c7442f fix: improve handling of missing message files ()
* improve handling of missing message files

* fix javadoc

Co-authored-by: Alexander Brandes <mc.cache@web.de>
2022-07-25 21:02:54 +02:00
7f436c405b fix: Don't fail post processing compilation on non-ascii charmap () 2022-07-03 14:58:17 +02:00
4d4d2ab087 Ignore cancelled projectile launch events () 2022-06-28 21:15:09 +02:00
c09d0d882e Use single PlotListener instance () 2022-06-22 12:50:56 +01:00
312cb2996c Better handling of offline projectile shooters () 2022-06-22 12:50:46 +01:00
f218902581 Implement build height limits into more events ()
* Implement build height limits into more events

* Implement util method to check if y is within world build limits

* Extract duplicate player-build-height-checking to plot area
 - Extract to core module to allow any possible future platforms to access the method, as they will always duplicate

* Add code tag to javadoc

Co-authored-by: Alexander Brandes <mc.cache@web.de>

Co-authored-by: Alexander Brandes <mc.cache@web.de>
2022-06-21 19:09:29 +02:00
f27009216c chore: Replace AnnotationHelper class () 2022-06-21 19:09:17 +02:00
6a54328f7d refactor: replace usages of switch over keyed enums () 2022-06-19 00:59:43 +01:00
7279862def docs: Publish javadocs to GH actions ()
* docs: Publish javadocs to GH actions

* chore: Use updated URL

* chore: Use correct URL
2022-06-17 23:40:29 +02:00
3d5c694daa chore: Comply with OSSRH licensing guidelines () 2022-06-15 20:17:17 +02:00
565838ad43 [ci skip] chore: Update renovate excludes (Closes ) 2022-06-13 11:36:46 +02:00
d08381dfed build: Release 6.9.0 2022-06-13 11:23:48 +02:00
b9479405e1 Ensure forceSync is provided when constructing chunk coordinators ()
* Ensure forceSync is provided when constructing chunk coordinators

* Re-add old factory create method and deprecate for removal

* Remove old create method that Guice doesn't like
2022-06-12 10:47:43 +02:00
a238ff19bf Implement tile entities to generation using Populators ()
* Implement tile entities to generation using Populators
 - Fixes 

* Javadocs

* Don't do the big error if heads don't work

* Address comments regarding javadocs/comments

* Ensure Location is still sealed, and add api description annotation to public methods in UncheckedWorldLocation

* Clean up HybridGen
 - There's no need for while loops acting as a modulo after we've already performed a modulo
 - Make the code-sections calculating if positions are in the wall/road more readable
 - Collaps duplicate if-elseif bodies

* Better exception handling when setting data to LimitedRegion during chunk population

* Address comments

Co-authored-by: Alexander Brandes <mc.cache@web.de>

* Better naming for "legacy" block state populator

Co-authored-by: Alexander Brandes <mc.cache@web.de>
2022-06-12 10:47:25 +02:00
1470b7117a chore: Add tadpole buckets to the list of dispensable items ()
chore: Add tadpole buckets to the list of disposables

Signed-off-by: Alexander Brandes <mc.cache@web.de>
2022-06-12 10:46:21 +02:00
09cc59a1c1 docs: Unify WE, P2 and Fawe abbreviations () 2022-06-11 16:16:06 +02:00
bf646be482 Only load world cofigurations if WorldEdit has fully enabled (safe to do) ()
* Only load world cofigurations if WorldEdit has fully enabled (safe to do)
 - Fixes 

(cherry picked from commit f2e1e99be3b4f1fd5ce00e32ea7773dd4d1855aa)

* Fix imports

* QueryCapability is effectively a "dumb" method

* Update Core/src/main/java/com/plotsquared/core/PlotSquared.java

Co-authored-by: Alexander Brandes <mc.cache@web.de>
2022-06-10 16:52:17 +02:00
3c75b170f0 fix: mob cap counting for each connected plot individually ()
cap meta is now handled in the base plot
2022-06-10 01:27:39 +02:00
9ffa935c0c build: Switch to bill of materials ()
* build: Switch to managed dependencies

* build: Move bom to root build script

* build: Update bom

* Update build.gradle.kts

* fix: Use the correct bom version
2022-06-09 12:57:37 +02:00
0a32268784 Prevent blocks moving/generating below and above build height ()
* fix: cancel BlockFormEvent outside of build limit

* refactor: rename variables for easier readability

* fix: cancel liquid flow outside build limit

* refactor: implement to/from context
2022-06-05 20:51:07 +02:00
ae3b8c06f6 chore: Address Paper javadoc warnings () 2022-06-05 20:50:49 +02:00
62754362c2 build: Don't expose jcip and findbugs annotations to the world on runtime ()
* build: Don't expose jcip and findbugs

* build: Revert relocation change of unpublished, shaded deps

* chore: Exclude .DS_Store files
2022-05-21 10:01:06 +00:00
2e9dfd6f6f chore: Update PaperMC repository endpoint ()
Migration - New PaperMC endpoints
2022-05-21 07:57:22 +02:00
96dfc27411 Fix lag caused when generating augmented worlds with roads ()
- Begin by implementing forceSync to the queue system as we know the chunk will be accessible to edits in some cases (i.e. population).
 - Also implement custom SideEffectSets to override any decided by the default chunk consumer, as we do NOT want to update neighbours in population (this caused infinite generation to be required causing the lag and server death). We also do not want to enqueue the QueueCoordinator in AugmentedUtils as this would write to the world and update neighbours before we might want to (plus it's just used to restrict and offset the blocks being set)
 - Then implement disabling any biomes from being saved/set to the queue to prevent augmented worlds having their biomes overridden in roads
 - Consequently fix ScopedQueueCoordinator, preventing the y value of blocks being set from needlessly being changed, fixing road heights in augmented worlds
 - Finally we do not need a method with chunkObject in the signature in AugmentedUtils as this is no longer used by the method
2022-05-16 13:27:41 +01:00