Commit graph

5185 commits

Author SHA1 Message Date
Aikar
319895bd9d Optimize Dynamic#get Missing Keys
get was calling toString() on every NBT object that was ever asked for an optional
key from the object to build a string for the error text.

When done on large NBT objects, this was using a ton of computation time building the
JSON representation of the NBT object.

Now we will just skip the value when 99.9999% of the time the text is never even printed.
2020-12-21 11:03:36 -05:00
Shane Freeder
49458cc927 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:
6f9fe1d9 #562: Add API to set equipment silently
bcddb754 SPIGOT-6256: Add method to check if the entity is in water

CraftBukkit Changes:
878b4375 #772: Add API to set equipment silently
22d7fcc9 SPIGOT-6256: Add method to check if the entity is in water
2020-12-21 07:56:22 +00:00
Bastian Oppermann
fdaae06cdf Adjust bStats data sending delay (#4914)
Many servers tend to restart at a fixed time at xx:00 which causes an
uneven distribution of requests on the bStats backend. To circumvent
this problem, this commit introduces some randomness to the initial
and second delay.
2020-12-20 16:41:00 +01:00
MiniDigger | Martin
57c5f5e566 Remove Paper's UnsafeUtils (#4913) 2020-12-19 21:14:37 +01:00
Simon Gardling
3ce9dfed51 Fix typo in 0368-Asynchronous-chunk-IO-and-loading.patch 2020-12-17 19:24:11 -05:00
Kyle Wood
37f1ff7069 Update Paperclip (again) 2020-12-18 22:38:18 -08:00
Kyle Wood
d4e3788b39 Update Paperclip 2020-12-18 22:19:36 -08:00
BillyGalbreath
c7c5f0241b Fix CraftSound backwards compatibility 2020-12-17 15:28:31 -06:00
MiniDigger | Martin
6c95759a00 Let some more packets be send immediately, closes #4140 (#4896)
Signed-off-by: MiniDigger | Martin <admin@minidigger.dev>
2020-12-16 23:16:03 +01:00
cakoyo
7a84defae4 Emancipate more features to PlayerHandshakeEvent
* The hostname and socket address was not null when the event fired, but the event does not provide the value, the change allows plugins to use the old value.
* Since `proxyLogicEnabled` will be checked after the event fired, to check the config value will allow plugins to modify it during the event handling.

Signed-off-by: MiniDigger | Martin <admin@minidigger.dev>
2020-12-16 21:43:09 +01:00
Automated
dc04ee87f8 [CI-SKIP] [Auto] Rebuild Patches
A recent commit has been made that caused patches to be out of order, rebuilding
2020-12-16 15:26:55 -05:00
Fruxz
459947e6bf Maded Title-Objects directy sendable to targets 2020-10-13 18:49:30 +02:00
ysl3000
11a4045767 Player Chunk Load/Unload Events
Co-authored-by: Mariell <proximyst@proximyst.com>
2020-10-31 23:06:21 +01:00
BillyGalbreath
3e5a38ccf5 MC-4 Fix item position desync 2020-12-14 09:05:29 -06:00
Shane Freeder
c184de4050 Limit auto recipe packets 2020-12-12 23:53:40 +00:00
Automated
7db1d7e79c [Auto] 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:
8f495b8d #564: Add method to get max world size

CraftBukkit Changes:
768d7fc2d #773: Add method to get max world size

Spigot Changes:
628435a8 #103: Add async catchers to Chunk#getEntities
2020-12-12 19:42:05 -05:00
BillyGalbreath
6ce7d63918 Fix curing villager makes equipment disappear 2020-12-08 22:21:54 -06:00
Shane Freeder
c81621d172 Tick inactive goal selectors 2020-12-09 20:31:08 +00:00
MiniDigger | Martin
62c0f6553e fix 4878 by always calling events using bukkit singleton 2020-12-09 21:09:54 +01:00
BillyGalbreath
896033a959 Fix MC-181190 curing zombie villager discount exploit (#4871) 2020-12-08 21:56:22 -06:00
Jake Potrebic
8c473e7fcd deprecate IllegalPacketEvent (#4867) 2020-12-07 23:51:55 -08:00
William Blake Galbreath
d6057372b4 Add #getEligibleHumans to SkeletonHorseTrapEvent 2020-08-23 21:57:55 +02:00
Mariell Hoversholm
889192e8f8 Fix merging spawning values 2020-12-05 14:59:05 +01:00
Jake Potrebic
43d8c6fcd4 Turn off spigot verbose world by default 2020-12-02 20:20:59 -08:00
MiniDigger | Martin
7e7a3d372a Fix Delegation to vanilla chunk gen
This broke in 1.16.1, when upstream changed stuff around and introduced this delegate field.

Closes #4097
2020-11-24 18:58:34 +01:00
Jake Potrebic
1023360683 fixed bug in jvm checker (#4845) 2020-12-04 19:58:24 -08:00
Kyle Wood
08835cda45 Enable Multi-Release plugin jar support
Fixes #4841
2020-12-04 15:57:46 -08:00
Automated
256a700c8d [Auto] 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:
5b747147e Increase outdated build delay
2020-12-03 03:37:01 -05:00
Kyle Wood
233273702f Add warning for servers not running on Java 11 2020-12-02 22:27:03 -08:00
Josh Roy
209f04eab2 Add PlayerShearBlockEvent 2020-08-27 15:39:24 -04:00
Jake Potrebic
e2da9f79e2 added missing default perms 2020-11-16 12:05:51 -08:00
Professor Bloodstone
c53e8d6220 Add summary to /paper chunkinfo command 2020-08-25 22:34:46 +02:00
William Blake Galbreath
427a4c9dd8 Climbing should not bypass cramming gamerule 2020-08-23 21:34:23 +02:00
MiniDigger | Martin
01fe745c90 Add legacy plugin count to metrics 2020-05-11 22:18:58 +02:00
Nassim Jahnke
7c3f274871 Add more lightning API 2020-07-26 14:46:14 +02:00
Riley Park
769f32c557 [ci skip] add stale bot configuration 2020-12-02 12:27:23 -08:00
Nassim Jahnke
744cdf7512 Add PlayerItemCooldownEvent 2020-08-25 14:01:03 +02:00
Anrza
89bdd85933 Add LivingEntity#clearActiveItem 2020-07-15 12:11:31 +02:00
Esophose
7cb939e3a3 Fix Player spawnParticle x/y/z precision loss 2020-10-03 19:00:20 -06:00
Max Lee
33f101b760 Fix plugin provides not being listed behind name in /plugins (#4825) 2020-12-01 15:06:14 +01:00
Shane Freeder
2e2d31ae89 Fix keep-spawn-loaded stopping force-loaded chunks from loading
Also, cleanup the patch a little bit
2020-12-01 13:23:44 +00:00
Shane Freeder
c74595c473 [CI-SKIP] Misc script changes (Closes #4346)
testserver - use printf instead of echo, as echo is apparently
              inconsistent across environments
requireDeps - change message slightly, maybe more useful to people?
2020-11-29 06:24:39 +00:00
Ineusia
14189f531d Add getDestroySpeed to Block API
Co-authored-by: MiniDigger | Martin <admin@minidigger.dev>
2020-07-18 19:29:40 -05:00
HexedHero
2220d44459 Add Material Tags for Coral, Coral Fangs and Coral Blocks 2020-11-27 15:26:52 +00:00
Josh Roy
603d4bb5a6 Fix cast check (#4813) 2020-11-27 13:07:41 -05:00
Mark
8996aa88cd Expose world spawn angle (#4803) 2020-11-27 19:27:52 +02:00
Shane Freeder
41cba04006 Updated Upstream (Bukkit)
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:
721e678d Fix javadoc in previous commit
2020-11-25 23:58:38 +00:00
Shane Freeder
036bb4e24a 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
Actually rebuild patches this time...

Bukkit Changes:
19b7b7bd #561: Add clear weather World API
5929c808 #552: Add the ability to retrieve hit, step, fall, and other sounds from blocks.

CraftBukkit Changes:
e1ebdd92 #771: Add clear weather World API
424598d2 #752: Add the ability to retrieve hit, step, fall, and other sounds from blocks.
2020-11-25 23:49:06 +00:00
Shane Freeder
2241a94f70 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:
19b7b7bd #561: Add clear weather World API
5929c808 #552: Add the ability to retrieve hit, step, fall, and other sounds from blocks.

CraftBukkit Changes:
e1ebdd92 #771: Add clear weather World API
424598d2 #752: Add the ability to retrieve hit, step, fall, and other sounds from blocks.
2020-11-25 23:45:25 +00:00
stonar96
2760588808 Preserve order and allow multiple equal blocks in hidden-blocks of Anti-Xray (#4072)
* Preserve order of hidden-blocks in Anti-Xray

This small change allows to specify and predict the order in which
Anti-Xray uses the hidden-blocks in engine-mode 2. The order is
preserved as specified in the hidden-blocks list. This can be useful,
for example, when adding air to the hidden-blocks to predict which fake
ores should be exposed to fake air.

* Allow to add equal blocks multiple times to hidden-blocks

This adds the ability to add equal blocks multiple times to the
hidden-blocks of Anti-Xray in engine-mode 2. Thus it is possible to give
certain blocks different priorities in Anti-Xray. For example if air and
diamond_ore are added twice, the obfuscated chunk will contain twice as
many air and diamond_ore blocks as other blocks in the list.
2020-11-24 17:59:04 +01:00