Commit graph

50 commits

Author SHA1 Message Date
MiniDigger | Martin
9cd572d31e hacked build changes, api applies cleanly 2021-06-11 08:29:15 +02:00
LemonCaramel
edb4be1e28 Fix Cannot be adventure component serialized when the legacy component is null (#5754) 2021-06-05 16:49:04 +09:00
Josh Taylor
887b02a2ad Use original user input instead of legacy event result for AbstractChatEvent#originalMessage (#5770) 2021-06-02 23:57:54 +01:00
Kezz
0d254aed35 Fix broadcast event and add Adventure broadcast (#5477) 2021-05-29 23:56:24 +01:00
Jason Penilla
ee0bafc6a3 Fix default ChatRenderer when no plugins are installed (#5702) 2021-05-21 18:08:18 -07:00
Jason Penilla
de5d8a76fe Enhance (Async)ChatEvent with per-viewer rendering API (#5684) 2021-05-21 15:55:54 -07:00
Riley Park
2d83abfdc1 I give up on trying to teach people to avoid the incorrect ways. 2021-05-16 23:54:43 -07:00
Kacper Płażewski
282e51eda2 Fix missing username console death message (#5654) (#5658) 2021-05-17 00:31:40 +02:00
Riley Park
455f6bc8c3 Activate warning by default when people are doing silly things (#5642) 2021-05-15 15:56:38 -07:00
Jake Potrebic
e1a160ad32 Remove unneeded component conversion for kick msg (#5626) 2021-05-14 05:52:03 -07:00
Jason Penilla
e7d9c31b56 Add ItemStack#displayName to get the formatted display name of an ItemStack (#5628)
The display name includes formatting such as item hover event, display name (in italics if renamed in anvil), and color based on rarity.

This is what vanilla uses for give command feedback, and when an item is shown in a death message.
2021-05-12 23:16:33 -07:00
Jake Potrebic
4d8954ef25 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#5601) 2021-05-09 13:50:09 -07:00
Jason Penilla
e57a4cbe72 Use JsonSerializationContext#serialize instead of recursion for AdventureComponents - fixes #5580 and #5371 2021-05-06 03:32:52 -07:00
Shane Freeder
084ee854f8 Fix missing CraftMetaBook#toBuilder override 2021-05-06 17:27:19 +01:00
Prof-Bloodstone
27c8f8cf70 Fix legacyComposer not using AsyncChatEvent messages (#5509) 2021-04-22 20:28:22 +02:00
Jason Penilla
bf974a611b Expose more Adventure serializers through PaperComponents (#5443) 2021-04-22 05:48:49 -07:00
Riley Park
e4e3475ac3 fix #5526 - use correct type when sending message to clients 2021-04-21 18:31:45 -07:00
Professor Bloodstone
1444373492 Send post ChatEvent messages as MessageType.CHAT
Fixes narrator issue #5450
2021-04-04 22:43:11 +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
8d7a6d9c89 Use PaperAdventure.PLAIN instead of PlainComponentSerializer.plain() for AdventureComponent#getString (#5414) 2021-03-25 17:01:59 -07:00
Riley Park
43a6e9e19c Refactor chat message composition (#5396)
fixes #5395
2021-03-21 13:47:13 -07: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
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
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
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
Riley Park
b154b7f941 Fix title swapping fadeIn and stay 2021-03-08 12:36:03 -08:00
MiniDigger | Martin
de5a2a4108 fix nullability of playerlist header/footer, closes #5290 2021-03-03 20:08:25 +01: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
Riley Park
7bb59f4a28 fix #5279 - clickable links again 2021-02-28 18:40:19 -08: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
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
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
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
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
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