Commit graph

1286 commits

Author SHA1 Message Date
Jake Potrebic
7b09f21566 Fix wrong world being passed into portal event (#8174) 2022-07-22 17:42:34 -07:00
Jake Potrebic
656d32e99f Don't use level random in entity constructors (#8122) 2022-07-22 16:42:13 -07:00
Jake Potrebic
edab698dbe Add EntityPortalReadyEvent (#5619) 2022-07-22 16:23:12 -07:00
Owen1212055
09a1be7aef Teleportation API (#6562) 2022-07-22 14:36:43 -05:00
Jake Potrebic
d6e0ab24da Updated Upstream (Bukkit/CraftBukkit) (#8172)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
23f557a0 SPIGOT-5380, SPIGOT-6958, PR-772: Add some missing entity API

CraftBukkit Changes:
fc3071161 SPIGOT-5380, SPIGOT-6958, PR-1085: Add some missing entity API
2022-07-22 11:18:00 -07:00
ChristopheG
220055020e Add yaw and pitch to CommandSourceStack#getBukkitLocation() (#8167) 2022-07-21 09:26:36 +02:00
Noah van der Aa
e484f0dd39 Make Biome implement Translatable (#8161) 2022-07-20 18:23:26 +02:00
Pedro
aa949f7a32 Add SpawnReason to Tadpoles spawned by Frogspawn (#8165) 2022-07-20 12:18:28 -04:00
Lulu13022002
d2bed83767 Call jump event for the beast (#8100) 2022-07-20 18:17:42 +02:00
Emily
9026cda053 [ci skip] Readd "Use" Javadoc tab (#8162) 2022-07-20 13:16:13 -03:00
Jake Potrebic
2dddcb7bf1 Fix update future return type (#8120) 2022-07-18 23:06:59 -07:00
Space Walker
2a189a99cd Fix missing redstone event call with Eigencraft redstone (#8148) 2022-07-18 13:46:52 +02:00
stonar96
b4e9e20e79 1.19 Anti-Xray cleanup (#8104) 2022-07-18 12:30:31 +02:00
Pedro
20a1a62469 Log IOException in plugin update (#7960) 2022-07-18 05:31:33 -04:00
Pedro
ea72c007be Fix spigot config not using commands.spam-exclusions (#8151) 2022-07-17 12:37:39 -04:00
Space Walker
bf9672aeac Fix #8138 (#8139) 2022-07-13 23:20:26 +02:00
Noah van der Aa
952ccf3125 Move old user conversion down slightly (fixes #8050) (#8052) 2022-07-12 23:13:27 +02:00
Jake Potrebic
820aef3f3c Updated Upstream (Bukkit/CraftBukkit/Spigot) (#8124)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
607ce370 SPIGOT-7069: Material.BARREL has Directional data class, should also be Openable
f14cea82 SPIGOT-7070: Material.SCULK_VEIN has Waterlogged data class, should also be MultipleFacing
8e43b278 PR-767: Add support checking/survivability methods for BlockData
b3dee151 SPIGOT-7083: Add Boat.WoodenType, Boat.Status; deprecate TreeSpecies

CraftBukkit Changes:
9a8e08010 SPIGOT-7069: Material.BARREL has Directional data class, should also be Openable
26bd88ccd SPIGOT-7070: Material.SCULK_VEIN has Waterlogged data class, should also be MultipleFacing
7ba06e15b SPIGOT-7095: StructureGrowEvent doesn't fire for mangrove propagules growing to a tree
163e35c91 PR-1079: Add support checking/survivability methods for BlockData
4230f8f0e SPIGOT-7083: Add Boat.WoodenType, Boat.Status; deprecate TreeSpecies

Spigot Changes:
14a2382f Rebuild patches
2022-07-12 10:16:05 -07:00
Jason Penilla
35eca19853 Refactor paper command (#8112)
* Refactor paper command

* Improve paper dumpitem output

* Register paper command permissions

Would be nice to add descriptions for these too, but that's an enhancement for another time

* Update MobcapsCommandTest fail message

* Notify on bad radius for fix light

* fixup rebase
2022-07-08 16:01:42 -07:00
Jason Penilla
21e92425e9 Use getChunkForLighting instead of getChunkAtImmediately in fixlight to properly ignore imposter chunks
We need chunks to actually have their light status future done to relight them, an imposter with for example only the empty future complete but with a light status cannot be relit.

getChunkForLighting gives the desired behavior and is the method used by the light engine, so updating fixlight to use it as well fixes #8115
2022-07-08 15:27:37 -07:00
Bjarne Koll
c908ebcbcb Add ZombieVillager conversion without entity event (#8111)
The ZombieVillager#setConversionTime API method internally calls
startConversion which always broadcasts the entity event responsible for
playing the respective sound at the beginning of a conversion.

This is not always wanted by developers when modifying already
converting zombies in particular.

This commit expands the ZombieVillager interface with another overload
of the setConversionTime method that also takes a simple toggle flag
indicating whether or not the entity event should be published to the
world.
2022-07-07 23:43:28 +02:00
Lulu13022002
913ca9381e Add xp orb spawn reason for frogs (#8045) 2022-07-07 23:38:12 +02:00
Jake Potrebic
22c788cb7e Fix Bee setFlower NPE (#8107) 2022-07-06 15:21:56 -07:00
Shane Freeder
93f19c4e41 Add a bit of extra debugging to chat order/time errors
I do wanna add some leeway to the kick, if message was sent within 30-60
seconds of the last message, assume clock drift and just ignore the kick
(send a message? just silently ignore?), but, I'm not 100% on this one
2022-07-06 05:53:16 +01:00
Bjarne Koll
569283aecf Call EntityDropItemEvent for goats dropping horns (#8094) 2022-07-04 21:26:43 +02:00
Jake Potrebic
6e7a5755b8 Add missing EntityDropItemEvent calls (#5674) 2022-07-04 12:01:17 -07:00
Nassim Jahnke
6a3d83f459 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#8092)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
d41796de SPIGOT-7071: Add Player#stopSound(SoundCategory category)
61dae5b2 SPIGOT-7011, SPIGOT-7065: Overhaul of structures

CraftBukkit Changes:
991aeda12 SPIGOT-1729, SPIGOT-7090: Keep precision in teleportation between worlds
5c9a5f628 SPIGOT-7071: Add Player#stopSound(SoundCategory category)
68f888ded SPIGOT-7011, SPIGOT-7065: Overhaul of structures
0231a3746 Remove outdated build delay.

Spigot Changes:
475f6008 Rebuild patches
8ce1761f Rebuild patches
2022-07-04 16:38:06 +02:00
Noah van der Aa
71cd2d00b6 Call StructureGrowEvent for mangrove propagule (#8023) 2022-07-04 16:20:43 +02:00
Spottedleaf
8d19ec3f2b Do not sync load chunk for dynamic game event listener registration
These can be called while an entity is being added to the world,
and if the entity is being added from a chunk load context the
sync load will block indefinitely (because the chunk load context
is for completing the chunk to FULL).

This does raise questions about the current system for these
dynamic registrations, as it looks like there is _zero_ logic
to account for the case where the chunk is _not_ currently loaded
and then later loaded.
2022-07-03 22:42:58 -07:00
Spottedleaf
0ad5dc6e60 Do not use worldgen executor for api profile completions
We cannot put blocking network I/O onto the worldgen threads,
this will crash the server if it stalls
2022-07-03 14:55:56 -07:00
u9g
93c9630699 Add Player#getFishHook (#7988) 2022-07-03 15:24:29 -04:00
pop4959
49891f0144 Don't print component in resource pack rejection message (#8084) 2022-07-02 02:19:53 -07:00
Noah van der Aa
d652ff68f2 Don't allow world unloading while ticking worlds (fixes #8080) (#8081) 2022-07-01 18:14:50 +02:00
Space Walker
41248e83a4 update eigencraft patch (#8076) 2022-06-30 09:20:40 +02:00
Jason Penilla
03335ed6fe [ci skip] Scan built jars for bad method usages (#8051) 2022-06-27 15:41:59 -07:00
Jake Potrebic
ce8e37904d Fix CCE for SplashPotion and LingeringPotion spawning (#7758) 2022-06-25 14:21:47 -07:00
Owen1212055
ed2321032d Use safe method for handling Files#createDirectories (#7997) 2022-06-25 16:40:28 -04:00
Jake Potrebic
69b406ca45 Updated Upstream (Bukkit/CraftBukkit) (#8042)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
d5a777e7 SPIGOT-7078: Add EntityPotionEffectEvent.Cause#WARDEN

CraftBukkit Changes:
82f757467 SPIGOT-7078: Add EntityPotionEffectEvent.Cause#WARDEN
c924fa531 SPIGOT-7072: Call events for stepping on sculk sensors and sculk shriekers
2022-06-25 13:26:00 -07:00
Noah van der Aa
a0bca1d513 [ci skip] Fix tiny mistake in adventure javadocs (#8046) 2022-06-24 18:39:44 +02:00
Owen1212055
bd0ca3a1fc Cleanup LivingEntity Hand Raised/Item Use API (#7995) 2022-06-24 04:04:02 -04:00
Space Walker
11ebcf8061 Update Alternate Current to v1.4.0 (#8028) 2022-06-24 09:58:59 +02:00
Jake Potrebic
3091fb476a Fix Player#loadData and Player#saveData javadocs (#8039) 2022-06-22 20:46:13 -07:00
Shane Freeder
a029f5d67c Parse MOTD as legacy sectioned string (Fixes #8036)
This is not ideal but this is how MOTDs have been parsed for years,
ensure that this is performed for all things getting the MOTD from
the server
2022-06-22 09:15:20 +01:00
Jake Potrebic
4d6659b9ff Use non-deprecated super ctor in PaperServerListPingEventImpl (#8029) 2022-06-21 08:54:52 -07:00
Nassim Jahnke
95e9506512 Updated Upstream (Bukkit/CraftBukkit) (#8015)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
05ae036c PR-746: Add option to use cached map color palette
57849c1b PR-759: Add preview chat option in ServerListPingEvent
0169e65d PR-758: Add missing server properties methods from 1.19

CraftBukkit Changes:
622dbe6c2 SPIGOT-7068: SKULK and SKULK_VEIN BlockSpreadEvents Still do not reference the correct source (SKULK_CATALYST)
6c61b73f3 PR-1052: Add option to use cached map color palette
c882f38ea SPIGOT-7066: Fix custom END worlds not generating DragonBattle
6866aab59 SPIGOT-2420: Can't set exp drops for EnderDragon death
9dcd46530 PR-1067: Add preview chat option in ServerListPingEvent
36c2681af PR-1066: Add missing server properties methods from 1.19
031eaadd0 Increase outdated build delay
8fda4b12f SPIGOT-7060: SCULK and SCULK_VEIN BlockSpreadEvents do not reference the correct source
2022-06-20 19:12:05 +02:00
Shane Freeder
348b3a541d Fix missing null check in ChunkGenerator#findNearestMapStructure 2022-06-20 15:01:29 +01:00
Spottedleaf
4c6e227360 Sync Starlight SaveUtil with 1.1.1
Code isn't used, but still should be synced
2022-06-18 14:48:08 -07:00
Jake Potrebic
c517b28adc Fix number parsing (#8013) 2022-06-17 11:28:18 -07:00
Shane Freeder
efcee6889d [ci skip] restore jd.io 2022-06-17 18:28:38 +01:00
Shane Freeder
bf6042c329 Temp: Disable javadoc.io for now 2022-06-17 08:26:11 +01:00
Jake Potrebic
b20573ca8c Fix incorrect random nextLong to nextInt (#8009) 2022-06-17 00:00:17 -07:00
Jake Potrebic
969129420b Add missing deprecation to AdvancementDisplayType (#7876) 2022-06-16 15:19:47 -07:00
Jake Potrebic
92e54e030d Couple fixes for command blocks (#8004) 2022-06-16 15:03:02 -07:00
Owen1212055
86832e42a4 Prevent empty items from being added to world (#7998)
The previous solution caused a bunch of bandaid fixes inorder to resolve edge cases where minecraft/the api might spawn items that are air.
Just simply prevent them from being added to the world instead.
2022-06-16 17:31:23 -04:00
Jake Potrebic
fe2520594d Fix advancement saving before reloads (#8003) 2022-06-16 13:59:53 -07:00
Noah van der Aa
a3f2d9b81e Fix MC-252439 (#7994) 2022-06-16 20:23:36 +02:00
Owen1212055
211ef55f82 Nameable Banner API (#7711) 2022-06-15 23:54:54 -04:00
Owen1212055
92967098bf Fix incorrect ansi code being used for bold (#8000)
Co-authored-by: BillyGalbreath <blake.galbreath@gmail.com>
2022-06-15 23:40:14 -04:00
Owen1212055
9d34379685 Add missing important BlockStateListPopulator methods (#7952) 2022-06-15 12:30:58 -04:00
Jake Potrebic
e08802e9ef Add option for strict advancement dimension checks (#7954) 2022-06-14 16:31:20 -07:00
u9g
4bb10a5761 Add ARMOR tag to MaterialTags (1.19) (#7987) 2022-06-14 19:04:19 -04:00
chickeneer
9a120dfa41 Fix the growth modifier for glowberries (#7986) 2022-06-14 17:37:14 -05:00
Dustin
53c7e9ec71 Add WardenAngerChangeEvent (#7943) 2022-06-14 12:34:41 +02:00
Jake Potrebic
15181a7c74 Fix command signs patch update (#7976) 2022-06-14 01:51:53 -07:00
Jake Potrebic
c3f403dd76 Couple config fixes (#7975) 2022-06-13 15:29:44 -07:00
froobynooby
98b65200d8 Use deserialised row keys in config tables (#7962) 2022-06-14 06:20:43 +09:30
Nassim Jahnke
e4e33753a4 Updated Upstream (Bukkit/CraftBukkit/Spigot)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
4d37bf30 PR-762: Add SpawnReason and TransformReason for Tadpole metamorphosis into Frog
788174ae PR-761: Add Hangable interface to MangrovePropagule

CraftBukkit Changes:
3571ca8d1 PR-1070: Add SpawnReason and TransformReason for Tadpole metamorphosis into Frog
8f097b92f PR-1068: Add Hangable interface to MangrovePropagule

Spigot Changes:
56be6a84 Rebuild patches
c6c8886d PR-118: Add config option to disable hopper-chunk-loading
2022-06-13 18:06:25 +02:00
Shane Freeder
5e5e561112 Bump netty 2022-06-12 23:53:18 +01:00
Josh Roy
ba31ce5451 Update Adventure to 4.11.0 and implement ComponentLogger (#7937) 2022-06-12 17:07:40 -04:00
Jake Potrebic
dbb094a30e Dont reassign the hiddenConfigs field in TimingsManager (#7951) 2022-06-12 10:29:27 -07:00
Nassim Jahnke
8d1748a6f9 Add paper-settings-directory cl argument (#7949) 2022-06-12 10:07:43 +02:00
Jake Potrebic
9c10476c94 Fire kick event for out-of-order chat on main thread (#7942) 2022-06-11 18:11:18 -07:00
Shane Freeder
1ef1281f21 Ensure that Log4J is shutdown when stopping the server (Fixes #7932) 2022-06-12 01:59:24 +01:00
Shane Freeder
945316dc5d Add support for Velocity forwarding v2
This is strictly not needed, however, I wanted to write this in part
to test the new forwarding logic, parsing and advertising the latest
featureset is also not exactly a bad thing
2022-06-09 14:27:06 +01:00
Jake Potrebic
df842f3d43 Adjust config headers 2022-06-11 13:43:59 -07:00
Spottedleaf
26325213c7 Fix keep spawn loaded patch
Needs to be in blocks
2022-06-11 07:58:17 -07:00
Spottedleaf
dca4b90844 Don't explode on light data in the nether
It shouldn't be there but whatever
2022-06-11 07:28:18 -07:00
Jake Potrebic
5a405cfe8e Updated Upstream (Bukkit/CraftBukkit) (#7936)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
c1d911a2 Add compat constructor to PlayerAnimationEvent

CraftBukkit Changes:
effea36a2 PR-1065: Add missing calls for BlockSpreadEvent when Sculk spreads
2022-06-11 02:02:57 -07:00
Nassim Jahnke
4e76d31387 Fix some references to obfuscated code 2022-06-11 11:02:09 +02:00
Owen1212055
624ed50aa0 Readd mc-4 fix 2022-06-11 10:41:59 +02:00
Owen1212055
1762939321 Readd remove vec allocations diff (#7930) 2022-06-11 04:30:20 -04:00
Evan
6a3bf07946 correct argument check in PlayerHandshakeEvent#setFailMessage(String) (#7940) 2022-06-11 02:37:00 -05:00
Spottedleaf
1c4ca26d6e Make starlight light read non-fatal if it throws
Brings behavior in line with the mod, we shouldn't kill the chunk
if the light data is corrupt, we can regenerate the light data
2022-06-10 21:08:37 -07:00
Spottedleaf
91cf4f0392 Correct dataconverter diff
Missed renames + game event listener walker stuff
2022-06-10 20:54:05 -07:00
Jake Potrebic
33d48ed240 Keep default keys in some maps
Fixes https://github.com/PaperMC/Paper/issues/7913#issuecomment-1152780671
2022-06-10 17:11:12 -07:00
Jake Potrebic
e44a2dc4ac Fixes parsing tags in selectors in command functions
Fixes #7928
2022-06-10 10:02:04 -07:00
Jake Potrebic
43f46a5f0b Improve migration file errors (#7929) 2022-06-10 10:01:09 -07:00
Owen1212055
3ce03e2d23 Remove unneeded patch 2022-06-10 16:15:38 +02:00
Owen1212055
ed313fe695 port Significantly improve performance of the end generation (#7919) 2022-06-10 10:11:41 -04:00
Nassim Jahnke
6463d02dac Don't print stacktrace when client with invalid signature logs in 2022-06-10 16:03:48 +02:00
Nassim Jahnke
a488132e74 Remove bad warning 2022-06-10 14:58:25 +02:00
Nassim Jahnke
d2519b507e Updated Upstream (CraftBukkit)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

CraftBukkit Changes:
cc7edd6bc SPIGOT-7051: Worldgen API does not run vanilla noise generation when shouldGenerateNoise is true
2022-06-10 14:45:58 +02:00
Nassim Jahnke
9b68662b17 Readd PlayerAnimationEvent constructor removed by upstream 2022-06-10 14:43:59 +02:00
Jake Potrebic
29e793489c improve packet config serializer (#7920) 2022-06-10 01:45:41 -07:00
Jake Potrebic
89e9e14344 couple more migration issues 2022-06-09 22:03:37 -07:00
Jake Potrebic
b347f25afc fix 2 more migration issues 2022-06-09 18:40:07 -07:00
Jake Potrebic
d8a7b12368 Updated Upstream (Bukkit/CraftBukkit/Spigot)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
45d9c73c SPIGOT-7043: EnderChest does not implement Lidded
86b95f34 SPIGOT-7047: Add Player#getLastDeathLocation

CraftBukkit Changes:
b2557f6ac SPIGOT-7041: Custom BiomeProvider not used when world set to type FLAT
732c50cab SPIGOT-7043: EnderChest does not implement Lidded
6209029ea SPIGOT-7048: addPassenger() not working when vehicle is player
3aa7836df SPIGOT-7047: Add Player#getLastDeathLocation
7d522cd26 SPIGOT-7050: Enchantment data of items will not be saved correctly when saved in YAML configuration file

Spigot Changes:
1dffefb4 Rebuild patches
2022-06-09 18:20:47 -07:00
Owen1212055
589dcea57a Fix light (#7917) 2022-06-09 21:09:55 -04:00
Jason Penilla
7997ea59e0 Don't use deprecated permission message method 2022-06-09 17:03:05 -07:00
Nassim Jahnke
9f383d8097 Fix migration of packet limiter 2022-06-10 01:55:53 +02:00