Commit graph

7459 commits

Author SHA1 Message Date
Jake Potrebic
bd166747a6 convert API/server tests to mockito (#8848)
* convert API tests to mockito

* convert server tests to mockito

* add co-author
2023-02-15 13:27:40 -08:00
brickmonster
afeeaca6dd Remove patch that was made obsolete by vanilla (#8847) 2023-02-13 17:52:27 +00:00
TM (Holly)
205d1402f8 Call PlayerReadyArrowEvent for when items in the offhand are used (#8842) 2023-02-13 09:36:25 +00:00
Jake Potrebic
ffc1cf92a1 Add missing isFuel Material entries (#8843) 2023-02-12 13:02:01 -08:00
Lulu13022002
f3de04a9fb Fix desync of honeycomb when the event is canceled (#8713) 2023-02-11 18:14:03 +01:00
Andreas Prues
723559e9f0 More Win Screen API (#8805)
Adds methods to get and set whether a player has seen the win screen before.
2023-02-11 16:55:45 +01:00
SamB440
e343c4eb44 Add projectile hit simulation API (#8816)
This adds API to force a projectile to hit a provided entity. Example usage could be if you have a player disguised as another entity, you could simulate an arrow colliding with the (fake) entity hitbox.
2023-02-11 15:41:06 +00:00
Matt Artist
f40928931b Modify offline mode warning to include Velocity line (#8812)
This adds a check to the offline-mode warning to see if Velocity is enabled. If it is enabled then it warns the user to make sure to secure their server and links to the Velocity documentation on that.
2023-02-10 18:10:11 -05:00
Drex
905b16a361 Add AntiXray layered obfuscation mode (#8799) 2023-02-09 18:38:00 +01:00
Piotr Pasztor
ab76bb014b Add Entity Body Yaw API (#8822) 2023-02-09 18:31:51 +01:00
Emily
b2b666ced2 Fix Tick::addTo/::between causing SOE (#8824) 2023-02-09 14:30:30 -03:00
Martijn
90cdec2283 Fix chunk sending when the computed time overflows (#8833) 2023-02-09 18:27:24 +01:00
Nassim Jahnke
62048076ef Send disguised chat for vanished players 2023-02-09 18:15:21 +01:00
Jake Potrebic
5fba40cc67 Updated Upstream (Bukkit/CraftBukkit) (#8823) 2023-02-07 07:55:53 -08:00
Jake Potrebic
3212d9fcf5 Deprecate duplicate API for arrow stuck count (#8829) 2023-02-07 07:43:20 -08:00
Jake Potrebic
72de51c57a Fix force-opening enchantment tables (#8820) 2023-01-27 13:01:36 -08:00
Jake Potrebic
b727bda1b0 Updated Upstream (CraftBukkit/Spigot) (#8815)
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:
ab8ace685 SPIGOT-7236: Bone meal doesn't increase use statistic
7dcb59b8e Avoid switch on material in previous commit

Spigot Changes:
19641c75 SPIGOT-7235: World.Spigot#strikeLightningEffect doesn't do anything
2023-01-27 12:52:04 -08:00
Josh Roy
166dc90e1c Remove CraftItemStack#setAmount null assignment (#8807)
This creates a problem with Paper's item serialization
api where deserialized items, which are internally
created as a CraftItemStack, will be completely lost if
#setAmount(0) is invoked (since the underlying handle
is set to null), while a regular Bukkit ItemStack
simply sets the amount field to zero, retaining the
item's data.

Vanilla treats items with zero amounts the same as items
with less than zero amounts, so this code doesn't create
a problem with operations on the vanilla ItemStack.
2023-01-24 09:30:51 -05:00
Aya
cbf3b9b7af [ci skip] Fix PiglinBarterEvent JavaDoc (#8795) 2023-01-22 20:33:21 +02:00
Andreas Prues
17333bd2e5 Win Screen API (#8802) 2023-01-22 14:21:45 +01:00
Aya
80dbbcd4bb Add Player#sendEquipmentChange(Map) API (#8800) 2023-01-22 15:00:37 +02:00
Bjarne Koll
ef23d583c0 Correctly shrink items during EntityResurrectEvent (#8780)
The EntityResurrectEvent logic is supposed to locate a totem of undying
in any of the interaction slots of the player inventory and then, if the
called EntityResurrectEvent is not cancelled, shrink that item by 1,
usually reducing it to zero.

For this, the logic iterates over the items in the interaction slots and
breaks out the loop if a totem of undying was found.
However, even if no totem of undying was found, the iteration item stack
variable remains as a refernce to the last interaction slot probed.

Plugins uncancelling a EntityResurrectEvent, which is published
pre-cancelled to listeners if no totem of undying could be found,
would hence cause the server logic to shrink completely unrelated items
found in, at the writing of this patch, the players off hand slot.

This patch corrects this behaviour by only shrinking the item if a totem
of undying was found and the event was called uncancelled.
2023-01-19 23:09:08 +01:00
Nassim Jahnke
6627ac4b94 Revert executor in authentication thread pool back to original patch 2023-01-18 17:20:24 +01:00
alex6777
1b552c2a22 Don't clone location in PreCreatureSpawnEvent (#8790) 2023-01-16 10:03:58 -05:00
Nassim Jahnke
4537ed779a Update netty to 4.1.87 2023-01-14 19:53:32 +01:00
froobynooby
9bc8ff81e2 Fix entity types not appearing in timings (#8786) 2023-01-14 10:33:13 +09:30
Jake Potrebic
bf239d382f Fix some explosion damage not scaling with difficulty (#8767)
Fixes https://github.com/PaperMC/Paper/issues/8735
2023-01-11 17:10:45 -08:00
Corey Shupe
fd465d949c Fix player chat messages from vanished players resulting in kicks (#8777)
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
2023-01-10 08:01:42 -05:00
Jake Potrebic
97690710b3 Fix treasure map config for loot tables (#8739) 2023-01-10 04:09:19 -08:00
byquanton
e52ed2c588 Updated Upstream (Bukkit/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

Bukkit Changes:
79e39671 SPIGOT-7034: Add methods for set/get instrument in Goat Horn

CraftBukkit Changes:
4768df736 SPIGOT-7034: Add methods for set/get instrument in Goat Horn
941d7e954 SPIGOT-7225: FireworkMeta#getPower() can throw a NullPointerException for items with no power set
2023-01-09 17:49:06 +01:00
Jason Penilla
8f79964ecd [ci skip] Automatically close PRs from master branches on opening (#8779) 2023-01-09 14:43:54 -07:00
Jake Potrebic
3ee1c5bf3f Use single player info update packet on join (#8773) 2023-01-08 18:46:54 -08:00
Hannes Greule
78bd0e8518 Fix items never falling after being on ground (#8768) 2023-01-07 13:05:13 +01:00
Nassim Jahnke
18e27e77fd [ci skip] Update paperweight to 1.4.1 2023-01-06 09:43:31 +01:00
Nassim Jahnke
27a64790ed [ci skip] Fix instrument reference in item specific hide flag docs 2023-01-05 20:28:43 +01:00
Bjarne Koll
43f4155da3 Persist paper lootable on entities (#8762) 2023-01-05 11:59:10 +01:00
Nassim Jahnke
5f27ebfa6f Replace ItemFlag.HIDE_POTION_EFFECTS (#8765) 2023-01-05 11:54:21 +01:00
Hannes Greule
850adc4885 Fix operator precedence bug (#8756) 2023-01-03 14:42:58 +01:00
Jake Potrebic
9473cd8981 Updated Upstream (Bukkit/CraftBukkit) (#8740)
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:
d352d965 SPIGOT-7221: Add Enemy (Entity) interface

CraftBukkit Changes:
397c5557c SPIGOT-7221: Add Enemy (Entity) interface
a0d3dfaf2 PR-1129: Fix state corruption while handling explosion damage on EntityComplexPart
d67777f8b SPIGOT-7218: Player's outer layer of skin disappears after respawn
2023-01-01 12:17:40 -08:00
Lulu13022002
f7f8d3c75b [ci skip] Fix hoglin conversionTime javadoc (#8734) 2022-12-30 21:08:02 +01:00
Owen1212055
cb9bc57e60 Return 0 if null for FireworkMeta (#8738) 2022-12-30 12:33:41 -05:00
Jake Potrebic
48768d68d6 Rework filtering spawn egg and tile entity nbt config (#6613) 2022-12-27 18:59:15 -08:00
SoSeDiK
49f3ef443a Expose pre-collision moving velocity to VehicleBlockCollisionEvent (#8457) 2022-12-28 00:56:19 +02:00
TreyRuffy
a0d9d433a3 Player Flying Fall Damage API (#5357) 2022-12-27 13:41:59 -07:00
Jake Potrebic
7c42959fb0 Updated Upstream (Bukkit/CraftBukkit) (#8714)
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:
aef9b6d2 PR-800: Add support for NoteBlock sounds in Skulls

CraftBukkit Changes:
ae8f5fc02 PR-1125: Add support for NoteBlock sounds in Skulls
0a1c89e4b SPIGOT-7212: Allow negative firework power
909a246af SPIGOT-7211: generateTree() with Consumer or Predicate is broken
c810c3ed8 Increase outdated build delay
2022-12-26 09:53:35 -08:00
Jake Potrebic
d4d31bb847 Fix (again) Player#getPlayerProfile no such method error (#8722) 2022-12-26 04:34:23 -08:00
Owen1212055
e794bcecbd Respect SpigotConfig logCommands & fix stopDancing() NPE (#8715) 2022-12-25 23:22:08 -05:00
Jake Potrebic
99fb11f7ea Use team display name for quit message (#7127) 2022-12-25 08:57:54 -08:00
Owen1212055
5297d99a4e Tadpole lock API (#8297) 2022-12-23 15:50:32 -05:00
aerulion
6b4dfb9627 Add EntityPushedByEntityEvent (#7704) 2022-12-23 20:59:11 +01:00