Commit graph

3201 commits

Author SHA1 Message Date
HexedHero
1f0ec5a3f4 Drop unneeded portal patch (#5566) 2021-05-02 20:33:17 +01:00
Automated
eed01ed6f0 [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:
95544a2da SPIGOT-6350: Fix wrong portal block place order
2021-05-02 05:07:27 -04:00
Spyros (Spyridon) Pagkalos
59b99675f4 Add beacon activation and deactivation events (#5121) 2021-04-30 17:15:00 +03:00
Nassim Jahnke
9cf8e67706 Add internal channel initialization listeners (#5557) 2021-04-30 15:47:45 +02:00
Jake Potrebic
6d9b44cecb Add RespawnFlags to PlayerRespawnEvent (#5533) 2021-04-30 00:47:10 -07:00
Jake Potrebic
8fb1ea9e2d Updated Upstream (Spigot) (#5550)
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

Spigot Changes:
4225eac0 SPIGOT-6423: Improve IP forwarding
2021-04-27 16:38:35 -07:00
Jake Potrebic
516a8cf544 Updated Upstream (Bukkit/CraftBukkit) (#5549)
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:
80ece5de Remove old draft API tags
8523fa23 #604: Add Contract annotation to ConfigurationSection
dd8edaa7 #603: Specify what velocity changes in javadocs

CraftBukkit Changes:
0d86921e SPIGOT-6435: send correcting "PacketPlayOutBlockChange" packet on interact for bisected items
2021-04-27 08:51:42 -07:00
HexedHero
927897bd57 Fix anchor respawn acting as a bed respawn when using the end portal (#5540) 2021-04-25 09:45:34 +01:00
Jason Penilla
1da2f0afbc Implement methods to convert between Component and Brigadier's Message (#5542) 2021-04-24 15:16:41 -07:00
Jake Potrebic
c2b9df245c Add PlayerBedFailEnterEvent (#4935) 2021-04-24 04:38:08 -07:00
Jake Potrebic
98eb2c8d94 [CI-SKIP] Remove bad null annotation (#5538) 2021-04-23 14:08:56 -07:00
Jake Potrebic
99eeb79087 More World API (#3850) 2021-04-23 13:57:13 -07:00
Jake Potrebic
b7b72bc15f Add PlayerDeepSleepEvent (#5525) 2021-04-23 12:27:39 -07:00
Jake Potrebic
02867ba131 fix non-dummy objectives not updating 2021-04-22 21:43:56 -07:00
Owen1212055
89e4cfa6de Add missing checkReachable check for shulker boxes (#5453) 2021-04-23 10:25:57 -04:00
Jake Potrebic
accd70d21f Fix PlayerItemHeldEvent firing twice (#5534)
Co-authored by: chickeneer <emcchickeneer@gmail.com>
2021-04-23 06:57:15 -07:00
Gergely Sarkozi
b20b05e631 fix PigZombieAngerEvent cancellation (fixes #5319) (v2) (#5329) 2021-04-23 15:06:36 +02:00
Jake Potrebic
911c94db70 Add get-set drop chance to EntityEquipment (#5528) 2021-04-23 03:11:28 -07:00
Jake Potrebic
3db3f8e72d Add consumeFuel to FurnaceBurnEvent (#5532) 2021-04-23 03:04:19 -07:00
Alphaesia
b1d73c6a4c Fix duplicating /give items on item drop cancel (#5536) 2021-04-23 21:36:34 +12:00
Prof-Bloodstone
27c8f8cf70 Fix legacyComposer not using AsyncChatEvent messages (#5509) 2021-04-22 20:28:22 +02:00
sulu5890
23b028a34f Don't print spawn load time when not loading spawn (#5467) 2021-04-22 11:54:11 -05:00
Jake Potrebic
08d5c44532 Add isDeeplySleeping to HumanEntity (#5470) 2021-04-22 09:32:40 -07:00
Jason Penilla
bf974a611b Expose more Adventure serializers through PaperComponents (#5443) 2021-04-22 05:48:49 -07:00
Owen1212055
9285c76055 Set Area Effect Cloud Rotation (#5462) 2021-04-22 07:43:58 -04:00
Owen1212055
fe208075ab Remove useless check on player interact cancellation (#5448)
This removes the BlockFlowerPot check that most likely was used when it was a tile entity.
2021-04-22 05:23:57 -04:00
Riley Park
e4e3475ac3 fix #5526 - use correct type when sending message to clients 2021-04-21 18:31:45 -07:00
Shane Freeder
2b12d671fa don't throw when loading TE with invalid keys 2021-04-21 20:05:50 +01:00
Spottedleaf
e877697d29 Do not schedule poi task for each block write on chunk gen
Most of the time optional == optional1, so we shouldn't
schedule a task for each write.
2021-04-21 20:04:42 +01:00
Shane Freeder
3e0a36dbbd Fix dangling sout 2021-04-18 22:12:09 +01:00
Shane Freeder
3007bdc020 basic hostname validation 2021-04-18 21:47:01 +01:00
MiniDigger | Martin
f3727ff757 Updated Upstream (Bukkit/CraftBukkit) (#5508)
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:
14883d6b SPIGOT-6078: Add SmithItemEvent and expand SmithingInventory API

CraftBukkit Changes:
115244c7 SPIGOT-6078: Add SmithItemEvent and expand SmithingInventory API
2021-04-18 11:02:48 +02:00
chickeneer
2ca0bd1368 Fix PlayerItemConsumeEvent cancelling (fixes #4682) (#5383) 2021-04-17 01:54:49 -05:00
Jason Penilla
42b4fbf53f Add support for tab completing and highlighting console input from the Brigadier command tree (#5437) 2021-04-16 23:37:51 -07:00
MiniDigger | Martin
82a0f5a11f Fix occasional light gen issues for neighbor blocks (#5500)
Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
2021-04-16 17:55:10 +02:00
froobynooby
ab75d99f1c Update the view distance before scheduling chunk loads (#5269) 2021-04-15 18:21:27 +09:30
Nassim Jahnke
6190c17845 Expose server protocol version (#5416) 2021-04-12 19:45:58 +02:00
Shane Freeder
dcdfac1f8c remove l4j class no longer in existence from preload list 2021-04-12 05:16:16 +01:00
Josh Roy
730eb6c014 Updated Upstream (CraftBukkit) (#5484)
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:
6b8cd9a7 SPIGOT-6207: forcibly drop the items of a converted zombie villager
2021-04-11 21:03:08 -04:00
Simon Gardling
90f7263390 Bump mysql-connector-java to 8.0.23 (Fixes #5473) (#5474) 2021-04-11 13:35:46 -04:00
Octavia Togami
9e67637c69 Update log4j to 2.11.2 for JDK 9+ compat (#5400) 2021-04-11 10:07:39 -07:00
Jake Potrebic
11b10106ee 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:
b302317a SPIGOT-5877: Add scaffolding for custom dimensions and biomes
ccccb625 SPIGOT-6417: Add Creeper fuse ticks API

CraftBukkit Changes:
0e26ddb6 SPIGOT-5877: Add scaffolding for custom dimensions and biomes
170d6feb SPIGOT-6417: Add Creeper fuse ticks API
2021-04-11 01:49:43 -07:00
Automated
c06734ee89 [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:
c85efa876 SPIGOT-6414: Use ASM9 API to add support for sealed classes
2021-04-07 04:57:26 -04:00
Automated
8cccd125e7 [Auto] Updated Upstream (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

CraftBukkit Changes:
221aed6cf SPIGOT-6413: Server Corruption Changing Blocks in Piston Events
721c4966b SPIGOT-6411: The PlayerEditBookEvent is not called when the player edits a book in the off-hand.
be0e94581 Add mc-dev imports

Spigot Changes:
a25e8ed2 Remove mc-dev imports
2021-04-07 01:17:32 -04:00
Jason Penilla
5c3dff17f2 Fix PlayerEditBookEvent (#5463) 2021-04-05 18:46:31 -07:00
Professor Bloodstone
1444373492 Send post ChatEvent messages as MessageType.CHAT
Fixes narrator issue #5450
2021-04-04 22:43:11 +02:00
Automated
6508b69da9 [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:
b530534f0 Remove some outdated PAIL comments
2021-04-04 03:22:27 -04:00
Spottedleaf
6ba2828aeb Prevent light queue overfill when no players are online 2021-04-01 16:33:36 +01:00
Gergely Sarkozi
72ad57c599 forced whitelist: use configuable kick message (fixes #5417) (#5418) 2021-03-31 08:15:12 +02:00
Riley Park
ee9fab24e7 bug #5432 - post modern event even if legacy event is cancelled
fixes #5432
2021-03-29 19:20:10 -07:00
Jason Penilla
ed27c9d52c Remove from Map by key 2021-03-29 02:50:01 -07:00
Spottedleaf
0336df461a Make sure to remove correct TE during TE tick
See Hydra, March 29th 2021.
2021-03-29 09:08:29 +02:00
Leijurv
012a401d1e Optimize short circuit evaluation of sign check (#5348) 2021-03-25 18:52:46 -10:00
Dmitry Sidorov
24c27bdb18 Drop carried item when player has disconnected (#5036) (#5166) 2021-03-26 07:21:24 +03:00
Jason Penilla
8d7a6d9c89 Use PaperAdventure.PLAIN instead of PlainComponentSerializer.plain() for AdventureComponent#getString (#5414) 2021-03-25 17:01:59 -07:00
Shane Freeder
68f0738631 Properly apply Sign#isEditable to TEs when calling BlockState#update 2021-03-23 06:46:54 +00:00
Riley Park
43a6e9e19c Refactor chat message composition (#5396)
fixes #5395
2021-03-21 13:47:13 -07:00
Shane Freeder
7fb24d323a 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:
7eb35643 SPIGOT-6398: Fix crash when bonemealing bamboo and the BlockSpreadEvent is cancelled
2021-03-19 23:27:53 +00:00
Jason Penilla
786afba088 Only set despawnTimer for Wandering Traders spawned by MobSpawnerTrader (#5391)
Upstream recently broke this when they exposed despawnTimer to API.
2021-03-19 16:19:28 -07:00
Jason Penilla
6d452f1f7f Fix VanillaMobGoalTest#testBukkitMap (#5390) 2021-03-19 15:21:54 -07:00
Mariell Hoversholm
8bafc17d67 apply fixup
I managed to move it, yet forgot to actually fix it up...
2021-03-19 07:50:12 +01:00
Mariell Hoversholm
4ff6e86500 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:
4e5f46cb Update ASM version

CraftBukkit Changes:
d54b500d Prepare for Java 16
2021-03-17 17:37:12 +01:00
Mariell Hoversholm
597f326302 wtf is this t file -jmp 2021-03-17 11:18:04 +01:00
Mariell Hoversholm
2d21a9f100 fix compile 2021-03-17 10:47:08 +01:00
Mariell Hoversholm
61ccf4bd87 rebase 2021-03-17 10:20:38 +01:00
Mariell Hoversholm
1ecd8a1ca7 script & POM fix 2021-03-16 19:41:20 +01:00
Mariell Hoversholm
2d847f7478 Actually fix preloading this time 2021-03-16 17:51:13 +01:00
Mariell Hoversholm
3052fe18f6 Fix class preloading 2021-03-16 17:47:15 +01:00
Mariell Hoversholm
9214bd49ba Apply fixups 2021-03-16 17:37:33 +01:00
Mariell Hoversholm
6ea816d217 Welcome to 1.16.5-R0.2 2021-03-16 17:09:07 +01:00
Mariell Hoversholm
c9ba11e0fc more work 2021-03-16 17:00:33 +01:00
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
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
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
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
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
Jake Potrebic
59fd0e3a84 fix per-world difficulty command (#5306) 2021-03-07 00:37:05 -08: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
Bjarne Koll
64e1a54657 Remove streams from SensorNearest
The behavioural nearby sensors are validated every tick on the entities
that registered the respective sensors and are therefore a good subject
to performance improvements.

More specifically this commit replaces the Stream#filter usage with
ArrayList#removeIf as the removeIf method on an array list is heavily
optimized towards a single internal array re-allocation without any
further overhead on the removeIf call.

The only negative of this change is the rather agressive diff these
patches introduce as the methods are basically being reimplemented
compared to the previous stream-based implementation.

See: https://nipafx.dev/java-stream-performance/
Note: Updated LICENCE.md to release this commit under MIT
2021-03-03 03:52:43 +01:00
MiniDigger | Martin
de5a2a4108 fix nullability of playerlist header/footer, closes #5290 2021-03-03 20:08:25 +01:00
Jason Penilla
b0df4d17c8 Fix Material#getTranslationKey for Block Materials (#5294)
* Fix Material#getTranslationKey for Block Materials

* Cache the result of Material#isBlock
2021-03-02 16:27:34 -08:00
Riley Park
b24a51c0e3 fix #5292 with help from @JRoy 2021-03-02 08:39:36 -08:00
Riley Park
c0db0192b2 New chat events for better Adventure support (#5289)
Bump Adventure to 4.6.0

fixes #5216
fixes #5261
fixes #5287
2021-03-01 19:07:12 -08:00
Camotoy
4299111876 Fix username connecting with no texture being overwritten by usercache (#4970) 2021-03-01 16:06:05 -05:00
Riley Park
7bb59f4a28 fix #5279 - clickable links again 2021-02-28 18:40:19 -08:00
Michael
a26dc45546 Print command usage for /paper entity list at more places (#5282) 2021-02-28 15:01:26 -08:00
Paul Zhang
1bc1a162c4 Implements PlayerHandshakeEvent#getOriginalSocketAddressHostname and deprecates PlayerHandshakeEvent(String, boolean) in favour of PlayerHandshakeEvent(String, String, boolean) 2021-02-23 16:47:06 +01:00
Tom
f1400a74c5 Expose Tracked Players
A lot of plugins seem to use reflection to determine this, so this could be a bit of a starter-patch as future PR'ers could also exposed tracked entities as well.
2021-02-26 16:27:53 -06:00
Tom
b190bc7e8a Clear SyncLoadInfo 2021-02-26 16:14:02 -06:00
Mariell Hoversholm
04fbd54c3b fix: legacy component serialisation was wiped out
When merging 2e419805ad, nobody caught the
fact we removed the component serialisation of legacy BungeeCord Chat
API components in the PacketPlayOutTitle class.

Test plugin code:

```kotlin
class LegacyMessageCommand : BaseCommand() {
    override fun register(manager: PaperCommandManager<CommandSender>) {
        manager.command(manager.commandBuilder("legacymsg")
            .sender<Player>()
            .handler {
                val component = ComponentBuilder("Test")
                    .color(ChatColor.DARK_RED)
                    .bold(true)
                    .append(" message")
                    .bold(false)
                    .color(ChatColor.of("#f8a8a8"))
                    .event(
                        HoverEvent(
                            HoverEvent.Action.SHOW_TEXT,
                            Text(
                                ComponentBuilder("Test hover")
                                    .color(ChatColor.AQUA)
                                    .underlined(true)
                                    .create()
                            )
                        )
                    )
                    .event(
                        ClickEvent(
                            ClickEvent.Action.SUGGEST_COMMAND,
                            "/legacymsg"
                        )
                    )
                    .create()
                it.sender.sendMessage(*component)
                it.sender.sendActionBar(*component)
                it.sender.sendTitle(
                    Title.builder()
                        .title(component)
                        .subtitle(component)
                        .fadeIn(40)
                        .stay(60)
                        .fadeOut(40)
                        .build()
                )
            })
    }
}
```

Fixes GH-5271.
2021-02-27 12:02:06 +01:00
Mariell Hoversholm
31433b07f6 Add config option for displayname in quit message (#5260)
This restores the behaviour to vanilla by default, but may be changed if
one wants to.

Fixes #5259.
2021-02-26 18:54:48 +01:00
Josh Roy
fb41a4b95e Fix further issues with rgb text pattern matching 2021-02-25 13:27:15 -05:00
Shane Freeder
1487ee284e Don't grab the threads stacktrace when dumping same thread
For some reason, this doesn't always seem to capture all states of shutdown,
either the logger is just being fun, or, potentially, the thread is already
marked as dead when we're getting called so the trace is not generated through
the method on Thread
2021-02-24 18:45:21 +00:00
Riley Park
46be0dcaf3 Display name should never be null 2021-02-23 16:48:02 -08:00
Riley Park
2e594bd059 Don't try to deserialize a null string in legacy method 2021-02-23 13:40:49 -08:00
Shane Freeder
89e9a596cb Misc thread dumps (#5200) 2021-02-23 21:06:12 +00:00
Jason Penilla
9cf511130f Replace usages of LegacyComponentSerializer.legacySection() in Paper-Server with PaperAdventure.LEGACY_SECTION_UXRC (#5233) 2021-02-23 05:45:09 -08:00
Jason Penilla
36e0569896 Enable Hex colors on PaperAdventure.LEGACY_SECTION_UXRC, and use it for sending messages to console command sender (#5230)
This fixes messages to console having colors stripped, and also fixes colors being downsampled in PlayerConnection#disconnect(String)
2021-02-22 22:43:49 -08:00
chickeneer
3d23a7351e PlayerDeathEvent#getDeathMessage should provide translation for legacy reasons #5227 2021-02-22 20:42:58 -06:00
Josh Roy
cd60d3a8f9 Fix Log4J converter not parsing hex without named colors (#5228) 2021-02-22 21:43:05 -05:00
Riley Park
30fd8a86d9 fix #5224 2021-02-22 10:24:44 -08:00
Riley Park
3effca65b6 fix? #5222 2021-02-22 05:33:41 -08:00
Riley Park
33e2178416 fix? #5218 2021-02-22 04:31:51 -08:00
Riley Park
6d82aa6d89 fix #5217 2021-02-22 03:12:40 -08:00
Riley Park
7b8399ab04 fix #5214 2021-02-22 01:53:53 -08:00
Riley Park
e1763a2679 fix stupid legacy chat garbage 2021-02-22 00:45:21 -08:00
Riley Park
b856bf08b9 fix #5212 and #5213 2021-02-22 00:03:03 -08:00
MiniDigger | Martin
db0dd75a20 Upstream Update (#5211) 2021-02-21 21:55:01 +01:00
Josh Roy
8bafdd49dc Add support for hex color codes in console 2021-02-20 13:12:58 -05:00
Riley Park
2e419805ad We're going on an Adventure! (#4842)
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
Co-authored-by: zml <zml@stellardrift.ca>
Co-authored-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-02-21 11:45:33 -08:00
Bierque Jason
1f2b6f865b Stop loop when flags set to false (#5101) 2021-02-21 13:34:08 +01:00
Max Lee
bcb2a139ee Call PreCreatureSpawnEvent for more spawn reasons (#5201) 2021-02-18 22:39:03 +01:00
Shane Freeder
20e500fadc 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:
1e843b72 #510: Add NamespacedKey#fromString() to fetch from user input
a4d18241 #581: Add methods to modify despawn delay for wandering villagers

CraftBukkit Changes:
0cd8f19f #802: Add methods to modify despawn delay for wandering villagers
d5c5d998 SPIGOT-6362: ConcurrentModificationException: null --> Server Crash
8c7d69fe SPIGOT-5228: Entities that are removed during chunk unloads are not properly removed from the chunk.
2021-02-16 17:08:29 +00:00
Automated
c51e3e6e51 [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:
5b289e69 SPIGOT-5778: Added World.getGameTime method

CraftBukkit Changes:
d97d91871 SPIGOT-6347: Nether Portals Default to Nether, even in Nether
8aa6a953f SPIGOT-5778: Added World.getGameTime method

Spigot Changes:
73fb6094 #107: Add async catching to chunk entity add/remove
2021-02-12 18:42:12 -05:00
Jason Penilla
79720eaf85 Merchant#getRecipes should return an immutable list (#5183)
This fixes a confusing issue where doing 'merchant.setRecipes(merchant.getRecipes());' would clear the merchants recipes, as the implementation of getRecipes is guavas Lists.transform wrapped in Collections.unmodifiableList, and the implementation of setRecipes clears the backing list before adding the elements of the provided list to the backing list.
The javadoc for the getRecipes method says 'an immutable list of trades', so this patch makes the javadoc correct.
2021-02-10 15:06:34 -08:00