Commit Graph

6051 Commits

Author SHA1 Message Date
Mariell Hoversholm f6d820f077 It compiles 2021-03-18 18:03:22 +01:00
Mariell Hoversholm 0f78e95250 More work 2021-03-18 18:03:22 +01:00
jmp 1718f61bf8 Updated Upstream (CraftBukkit/Spigot)
Doesn't compile yet.

CraftBukkit Changes:
90d6905b Repackage NMS
69cf961d Repackage patches

Spigot Changes:
79d53c28 Repackage NMS
2021-03-18 18:03:22 +01:00
jmp b28d461145 Update scripts for NMS repackaging 2021-03-18 18:03:22 +01:00
Riley Park d4532f7e70
bug #5373 - fix AsyncChatEvent not being posted when processing a legacy APCE continuation 2021-03-16 11:57:34 -07:00
stonar96 522ae1c51c
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 00:40:57 +00:00
Aikar 1cda671187
[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 8c74d31264
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 19:35:51 +00:00
Riley Park fd3c66a913
bug #5362 - correctly pass "render type" when registering a new scoreboard objective
fixes #5362
2021-03-14 12:04:55 -07:00
Jake Potrebic 39c487b37d Add per-command perms for paper command 2021-03-13 11:14:50 +01:00
Jake Potrebic cdbf2578c0
Add Item Rarity API (#5352) 2021-03-13 01:27:48 +00:00
Spottedleaf d80e43647d
[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-12 00:36:30 +00:00
Irmo van den Berge 808bd91986
Add fast alternative constructor for Vector3f (#5339)
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2021-03-10 13:14:52 -08:00
Riley Park e849c51daa fix #5336 2021-03-10 11:09:23 -08:00
Trigary 0b25bacfc7 fix patch 'Remove streams from SensorNearest' (fixes #5330) 2021-03-10 12:36:19 +01:00
Jason 4d287e31cc
Use Adventure for `/version` command feedback, add copy to clipboard click event (#5333) 2021-03-09 20:56:13 -08:00
Shane Freeder eb11845f87
Fix creating worlds with "invalid" names (Fixes #5331) 2021-03-09 21:06:09 +00:00
Jake Potrebic e4d8a6279c Implement Keyed on World 2021-03-09 20:26:45 +01:00
Aikar bcb63dab7f
[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 48342b06ca Allow signs that are inside of the spawn protection to be right clicked
to use their run_command tag
2021-03-09 20:02:23 +01:00
Jake Potrebic c229f90c1a Add Block#isValidTool 2021-03-09 19:38:40 +01:00
Jake Potrebic 20e709c1d6 Add recipe to cook events 2021-03-09 19:22:19 +01:00
Riley Park 2dcf8bff4f
legacy formatting will be the death of me 2021-03-09 10:03:27 -08:00
Riley Park f597fea0de
legacy formatting is worse than walking around in wet socks 2021-03-09 09:27:12 -08:00
Riley Park 7f72c4675b
Use implementation-provided legacy serializer for events 2021-03-08 17:11:17 -08:00
Riley Park 27a8d99ec4
Adventure 4.7.0 2021-03-08 16:44:40 -08:00
Mariell Hoversholm e65bd35a12
Respect teams in legacy chat name if configured (#5321) 2021-03-08 15:14:49 -08:00
Josh Roy b31089a929
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 15:12:31 -08:00
Riley Park a52b30814f
Fix title swapping fadeIn and stay 2021-03-08 12:38:00 -08:00
chickeneer 54ec85949d Prevent grindstones from overstacking items 2021-03-07 11:59:40 +01:00
Aleksander Jagiello d7795080c7 Fix NPE for AIR in meta operations in ItemStack 2021-03-07 11:46:37 +01:00
Aurora 2e70796c7f
[CI-SKIP] Improve documentation of PreCreatureSpawnEvent (#5244) 2021-03-07 10:35:45 +00:00
Gergely Sarkozi 7bb92e750c
[CI-SKIP] Add JavaDoc links to Tag class pointing to custom Paper tags (#5285) 2021-03-07 10:31:20 +00:00
Jake Potrebic 28cd686bff
fix per-world difficulty command (#5306) 2021-03-07 08:37:05 +00:00
Mariell Hoversholm be7cde2c76
[CI-SKIP] Always check PATH for JDK (#5315) 2021-03-06 13:50:24 +00:00
Jake Potrebic 5b20df6bf0 added PlayerNameEntityEvent 2021-03-04 23:55:04 +01:00
Jake Potrebic ff9c82444e Add worldborder events 2021-03-04 21:13:24 +01:00
Jake Potrebic 616b1f3cd0 consider enchants for destroy speed 2021-03-04 20:48:08 +01:00
Jake Potrebic aaef1d5cca fix file conversion 2021-03-04 19:59:23 +01:00
Phoenix616 674d8f7f7e Make discovered maps config work in treasure maps from loot tables too 2021-03-04 19:37:21 +01:00
Trigary be16879144 stop firing pressure plate EntityInteractEvent for ignored entities (fixes #4962) 2021-03-04 18:53:25 +01:00
Shane Freeder 7d56f38ed0
Do not use the bukkit singleton for the GUI (Fixes #5301) 2021-03-04 01:39:18 +00:00
Josh Roy 4c9bdf53ac
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 14:43:45 -08:00
AlexProgrammerDE 8647bd1307 Improve ServerGUI
- Added logo to server frame
- Show tps in the server stats
2021-03-03 22:16:32 +01:00
Mariell Hoversholm fcc6d33590 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-"8e6d90c2d"]
	at net.minecraft.server.v1_16_R2.JsonList.load(JsonList.java:190) ~[paper-1.16.3.jar:git-Paper-"8e6d90c2d"]
	at net.minecraft.server.v1_16_R2.DedicatedPlayerList.y(SourceFile:95) ~[paper-1.16.3.jar:git-Paper-"8e6d90c2d"]
	...
```

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 <riley.park@meino.net>
2021-03-03 21:56:04 +01:00
Jake Potrebic 17d2e1291e Fix interact event in adventure mode 2021-03-03 21:44:30 +01:00
TheShermanTanker 964e0bf42b MC-29274: Fix Wither hostility towards players 2021-03-03 21:35:57 +01:00
Eric Su 9e24a52137 Fixed furnace cook-speed multiplier losing precision when calculating cook time 2021-03-03 21:08:15 +01:00
lukas81298 c7e42faa36 Do not create unnecessary copies of the passenger list 2021-03-03 20:55:13 +01:00
Jake Potrebic 40881ad673 added tnt minecarts to the tnt height nerf 2021-03-03 20:42:47 +01:00