Commit graph

5416 commits

Author SHA1 Message Date
Mariell Hoversholm
0750bfaf8c It compiles 2021-03-16 16:50:45 +01:00
Mariell Hoversholm
908c938d0c More work 2021-03-16 14:04:28 +01:00
Jason Penilla
062733b903 Updated Upstream (CraftBukkit/Spigot)
Doesn't compile yet.

CraftBukkit Changes:
90d6905b Repackage NMS
69cf961d Repackage patches

Spigot Changes:
79d53c28 Repackage NMS
2021-03-16 00:19:45 -07:00
Jason Penilla
213b84a2a8 Update scripts for NMS repackaging 2021-03-16 00:19:21 -07:00
Riley Park
8b1e661370 bug #5373 - fix AsyncChatEvent not being posted when processing a legacy APCE continuation 2021-03-16 11:57:34 -07:00
stonar96
797fc746d0 Replace all block states of a specified block (#5055)
Up to now Anti-Xray did only replace blocks that have the default block
state of the specified blocks in hidden-blocks (engine-mode: 1) or
hidden-blocks and replacement-blocks (engine-mode: 2). Therefore it wasn't
possible to replace for example chests facing south because chest refers to
the default block state facing north. Supporting block states in these lists
is overkill. Instead this commit makes Anti-Xray to replace all block states
of a specified block. However, Anti-Xray will still place the default block
states.
2021-03-16 01:40:57 +01:00
Automated
11b21a19c3 [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:
2ffdb31ec Use upstream plexus-compiler-eclipse
2021-03-15 02:57:17 -04:00
Josh Roy
55421b2226 Updated Upstream (Bukkit) (#5359)
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:
c589f546 Use upstream plexus-compiler-eclipse
2021-03-14 15:35:51 -04:00
Riley Park
727e71ad0f bug #5362 - correctly pass "render type" when registering a new scoreboard objective
fixes #5362
2021-03-14 12:04:49 -07:00
Jake Potrebic
be423b993b Add per-command perms for paper command 2021-01-05 13:25:45 -08:00
Jake Potrebic
019f1bff24 Add Item Rarity API (#5352) 2021-03-12 17:27:48 -08:00
Spottedleaf
d84c3d0036 [CI-SKIP] Removal from the MIT list (#5345)
Any future work I do will be under GPLv3. This doesn't affect current patches.
2021-03-11 16:36:30 -08:00
Irmo van den Berge
b2e6c8941b Add fast alternative constructor for Vector3f (#5339)
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2021-03-10 22:14:52 +01:00
Riley Park
1649b53e54 fix #5336 2021-03-10 11:09:23 -08:00
Trigary
32f7b1fa11 fix patch 'Remove streams from SensorNearest' (fixes #5330) 2021-03-10 12:24:20 +01:00
Jason Penilla
e59776a02e Use Adventure for /version command feedback, add copy to clipboard click event (#5333) 2021-03-09 20:56:13 -08:00
Shane Freeder
f33a17faf7 Fix creating worlds with "invalid" names (Fixes #5331) 2021-03-09 21:06:09 +00:00
Jake Potrebic
a7ed5db4ec Implement Keyed on World 2021-01-06 00:35:50 -08:00
Automated
eb89c87a91 [CI-SKIP] [Auto] Rebuild Patches
A recent commit has been made that caused patches to be out of order, rebuilding
2021-03-09 14:07:11 -05:00
Anton Lindroth
6bf13b5e98 Allow signs that are inside of the spawn protection to be right clicked
to use their run_command tag
2020-04-15 02:25:35 +02:00
Jake Potrebic
02c234f0a0 Add Block#isValidTool 2020-07-06 12:46:55 -07:00
Jake Potrebic
ddbf97839e Add recipe to cook events 2021-01-06 12:06:00 -08:00
Riley Park
4ef1d13622 legacy formatting will be the death of me 2021-03-09 10:03:27 -08:00
Riley Park
a597c7d687 legacy formatting is worse than walking around in wet socks 2021-03-09 09:27:12 -08:00
Riley Park
0eaa2dd444 Use implementation-provided legacy serializer for events 2021-03-08 17:11:17 -08:00
Riley Park
246dff9c8b Adventure 4.7.0 2021-03-08 16:44:40 -08:00
Mariell Hoversholm
930599fcbf Respect teams in legacy chat name if configured (#5321) 2021-03-09 00:14:49 +01:00
Josh Roy
8a65e6b959 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#5325)
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:
d264e972 #591: Add option for a consumer before spawning an item
1c537fce #590: Add spawn and transform reasons for piglin zombification.

CraftBukkit Changes:
ee5006d1 #810: Add option for a consumer before spawning an item
f6a39d3c #809: Add spawn and transform reasons for piglin zombification.
0c24068a Organise imports

Spigot Changes:
bff52619 Organise imports
2021-03-08 18:12:31 -05:00
Riley Park
b154b7f941 Fix title swapping fadeIn and stay 2021-03-08 12:36:03 -08:00
chickeneer
2fffeb4a36 Prevent grindstones from overstacking items 2021-02-16 21:38:35 -06:00
Aleksander Jagiello
29b3f9b2bb Fix NPE for AIR in meta operations in ItemStack 2021-02-03 18:04:27 +01:00
Aurora
1ff89d3d71 [CI-SKIP] Improve documentation of PreCreatureSpawnEvent (#5244) 2021-03-07 11:35:45 +01:00
Gergely Sarkozi
b40aeccfc2 [CI-SKIP] Add JavaDoc links to Tag class pointing to custom Paper tags (#5285) 2021-03-07 11:31:20 +01:00
Jake Potrebic
59fd0e3a84 fix per-world difficulty command (#5306) 2021-03-07 00:37:05 -08:00
Mariell Hoversholm
afe9f61c4c [CI-SKIP] Always check PATH for JDK (#5315) 2021-03-06 14:50:24 +01:00
Jake Potrebic
5bd9ea9bb0 added PlayerNameEntityEvent 2021-03-04 11:42:44 -08:00
Jake Potrebic
faa8969e12 Add worldborder events 2021-01-04 22:41:02 -08:00
Jake Potrebic
aad9b036bc consider enchants for destroy speed 2021-01-03 23:18:34 -08:00
Jake Potrebic
4c24cd0ef3 fix file conversion 2021-01-04 19:49:50 -08:00
Phoenix616
6e29351ca9 Make discovered maps config work in treasure maps from loot tables too 2021-01-28 20:18:38 +01:00
Trigary
2fdb229830 stop firing pressure plate EntityInteractEvent for ignored entities (fixes #4962) 2021-02-02 09:29:55 +01:00
Shane Freeder
5eab69f416 Do not use the bukkit singleton for the GUI (Fixes #5301) 2021-03-04 01:39:18 +00:00
Josh Roy
53f27183bf Updated Upstream (Bukkit/CraftBukkit/Spigot) (#5299)
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:
9d0ad318 Fix javadoc errors in previous commits
9501daa2 #578: Add methods to modify the rate of regeneration and starvation
197d8f3d #577: Add EntityExhaustionEvent

CraftBukkit Changes:
a021e334 #795: Add methods to modify the rate of regeneration and starvation
509e523c #792: Add EntityExhaustionEvent

Spigot Changes:
db99f821 Rebuild patches
2021-03-03 17:43:45 -05:00
AlexProgrammerDE
db12dd64e2 Improve ServerGUI
- Added logo to server frame
- Show tps in the server stats
2020-10-03 08:28:22 +02:00
Mariell Hoversholm
cd9197ab62 Throw proper exception on empty JsonList file
Related to #4174, #4717.

As it stands, `JsonList` throws an NPE on `jsonarray.iterator()` when
the reader given is at EOF. This means there is an unintelligible
message shown to the player:

```
[16:44:31 ERROR]: Encountered an unexpected exception
java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonArray.iterator()" because "jsonarray" is null
	at net.minecraft.server.v1_16_R2.JsonList.load(JsonList.java:192) ~[patched_1.16.3.jar:git-Paper-248]
	at net.minecraft.server.v1_16_R2.DedicatedPlayerList.y(SourceFile:95) ~[patched_1.16.3.jar:git-Paper-248]
	...
```

This is clearly not understandable to the untrained eye: what is
`jsonarray`? What is `DedicatedPlayerList.y`?

This rather does a proper exception message:

```
[16:42:59 ERROR]: Encountered an unexpected exception
java.lang.NullPointerException: The file "banned-players.json" is either empty or corrupt
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:787) ~[paper-1.16.3.jar:git-Paper-"c7e0a94a2"]
	at net.minecraft.server.v1_16_R2.JsonList.load(JsonList.java:190) ~[paper-1.16.3.jar:git-Paper-"c7e0a94a2"]
	at net.minecraft.server.v1_16_R2.DedicatedPlayerList.y(SourceFile:95) ~[paper-1.16.3.jar:git-Paper-"c7e0a94a2"]
	...
```

It is still an exception, which server owners may or may not understand,
but the message now says exactly what went wrong, and who would've
known, now we know what `DedicatedPlayerList.y` is, and we know what
file was broken.

This is more of a quality of life change, but it is certainly useful to
the server owners that come into `#paper-help` and the issue tracker
(#4174) to ask for help with unintelligible messages we need to open a
patched Paper project to make any sense out of.

Check state of jsonarray instead of checkNotNull

Co-authored-by: Riley Park <rileysebastianpark@gmail.com>
2020-11-01 16:43:31 +01:00
Jake Potrebic
31de60a66f Fix interact event in adventure mode 2021-01-06 13:43:39 -08:00
TheShermanTanker
f4d6a5ebc1 MC-29274: Fix Wither hostility towards players 2020-10-01 01:18:12 +08:00
Eric Su
ac37abff18 Fixed furnace cook-speed multiplier losing precision when calculating cook time 2020-10-29 15:32:14 -07:00
lukas81298
66415b48bc Do not create unnecessary copies of the passenger list 2020-12-20 01:50:50 +01:00
Jake Potrebic
b780d4099f added tnt minecarts to the tnt height nerf 2020-12-02 22:08:20 -08:00