Dylan K. Taylor
365cce9d0c
Merge branch 'next-minor' into next-major
2023-01-18 20:46:22 +00:00
Dylan K. Taylor
78aea5c34c
Merge branch 'stable' into next-minor
2023-01-18 20:46:10 +00:00
Dylan K. Taylor
d7f40f75d2
PlayerPreLoginEvent: fixed documentation errors
2023-01-18 20:45:49 +00:00
Dylan K. Taylor
b76265cd37
PlayerChatEvent: introduce new formatting API
...
this API is simultaneously more powerful and cleaner than the previous system.
The previous system relied on undocumented behaviour and was limited to non-localizable strings.
This enables custom servers to implement their own chat formats (e.g. containing localizable tags) which will be displayed in each player's own language (once per-player language has been properly implemented, anyway).
2023-01-13 17:20:08 +00:00
Dylan K. Taylor
7ac6bd79a9
Localized remaining disconnection screens (except one or two that should never actually happen)
2022-12-27 20:05:59 +00:00
Dylan K. Taylor
6b8b7311f0
Support localized disconnect screen messages for PlayerLoginEvent
2022-12-27 18:57:32 +00:00
Dylan K. Taylor
f173b91ca1
Introduce support for Translatable disconnection messages
...
this allows localizing disconnection screens (at least, once #4512 has been addressed) and the disconnect reasons shown on the console.
We already had disconnect messages implicitly localized in a few places, so this is just formalizing it.
This does break BC with any code that previously passed translation keys as the disconnect screen message, because they'll no longer be translated (only Translatables will be translatated now).
2022-12-27 18:36:07 +00:00
Dylan K. Taylor
f8cc015c51
Merge branch 'next-minor' into next-major
2022-12-23 16:58:59 +00:00
Dylan K. Taylor
17125ce0e3
Merge branch 'stable' into next-minor
2022-12-23 16:56:54 +00:00
Dylan K. Taylor
97ef209c5f
HandlerList: added missing class-string type for constructor
2022-12-19 16:26:36 +00:00
Dylan K. Taylor
3d75094874
Standardize explosion radius terminology
...
closes #5061
2022-12-15 22:43:36 +00:00
Dylan K. Taylor
4d79aced07
Merge branch 'next-minor' into next-major
2022-12-15 19:50:27 +00:00
Dylan K. Taylor
95d0a3bf41
Merge branch 'stable' into next-minor
2022-12-15 19:38:22 +00:00
Armen Deroian
4357c110c8
Add the event: WorldParticleEvent ( #5428 )
2022-12-06 14:19:14 +00:00
Dylan K. Taylor
99996b62d6
Align PhpDoc @param tags according to PHP-CS-Fixer
2022-12-06 13:21:20 +00:00
Armen Deroian
fed2a6d917
Add the event: WorldSoundEvent ( #5322 )
2022-12-06 13:06:40 +00:00
Dylan K. Taylor
28d8526d8d
Merge branch 'next-minor' into next-major
2022-11-30 20:05:30 +00:00
IvanCraft623
d476a4c1aa
Implement a Living::getDisplayName()
( #5384 )
2022-11-27 19:48:55 +00:00
zSALLAZAR
8f20b9da91
Rename ExplosionPrimeEvent to EntityPreExplodeEvent ( #5434 )
2022-11-26 19:55:16 +00:00
Dylan K. Taylor
b6982a84ef
Merge branch 'next-minor' into next-major
2022-11-25 14:52:56 +00:00
Dylan K. Taylor
d79e6354a0
Merge branch 'stable' into next-minor
2022-11-25 14:41:05 +00:00
Dylan K. Taylor
fdb07cdbcd
Added more missing native types according to 8.0 standards
2022-11-23 14:21:38 +00:00
Dylan K. Taylor
3b6ff3c42b
Apply union types in some places (BC breaks)
2022-11-23 14:03:35 +00:00
zSALLAZAR
e5f5fe80f9
BlockGrowEvent: Remove unnecessary Cancellable implementation ( #5359 )
...
this is already implemented by BaseBlockChangeEvent
2022-11-23 13:29:23 +00:00
zSALLAZAR
36ab34df29
Implement BlockDeathEvent ( #5420 )
...
closes #4711
2022-11-23 12:57:26 +00:00
Dylan K. Taylor
0c463a8721
PlayerCreationEvent: update woefully inadequate documentation
...
closes #4581
2022-11-15 21:45:08 +00:00
Dylan K. Taylor
39e10da88d
PlayerChatEvent: replace hardcoded translation key with KnownTranslationKeys constant
2022-11-15 15:15:34 +00:00
Dylan K. Taylor
e1b0e00c6f
DataPacketSendEvent: add array type validation
...
this API is used directly by plugins, so anything goes.
2022-10-13 17:10:33 +01:00
Dylan K. Taylor
774df0fa4c
DataPacketSendEvent: added setPackets()
...
this is an implicit BC break, since plugins may assume that the packets in this array aren't going to change.
However, in practice, it's not likely to cause any real issues.
2022-10-13 17:06:09 +01:00
Dylan K. Taylor
8dc0d506f4
Merge branch 'next-minor' into next-major
2022-10-11 22:29:21 +01:00
Dylan K. Taylor
c1fbac412e
event: ensure that modifications to items expected to be readonly have no effect
...
this isn't a very glorious fix, but it's the best I have for now.
2022-10-07 11:33:14 +01:00
Dylan K. Taylor
f6a9949942
Remove PlayerCommandPreprocessEvent
...
closes #4284
2022-09-24 15:35:49 +01:00
Dylan K. Taylor
1ecb10acba
Merge branch 'next-minor' into next-major
2022-08-21 19:19:07 +01:00
Dylan K. Taylor
dce8bd6d21
CS: Standardize new with braces
2022-08-15 17:16:23 +01:00
Colin
304bb84af2
BlockFormEvent: Added getCausingBlock() method ( #5226 )
2022-08-15 16:26:48 +01:00
Dylan K. Taylor
1ff69136a3
Merge branch 'next-major' into modern-world-support
2022-06-07 20:01:40 +01:00
Dylan K. Taylor
aa9f8781ff
Merge branch 'next-minor' into next-major
2022-06-07 19:56:26 +01:00
Dylan K. Taylor
d2613039ed
Replace BlockLegacyIds usages with BlockTypeIds where possible
2022-06-05 21:17:10 +01:00
Dylan K. Taylor
083a35f970
Modernize property type declarations
2022-06-04 18:16:32 +01:00
Dylan K. Taylor
38d6284671
Use PHP-CS-Fixer to enforce file header presence
2022-06-04 17:34:49 +01:00
Dylan K. Taylor
179cac45f5
Merge branch 'stable' into next-minor
2022-05-22 16:21:05 +01:00
Dylan K. Taylor
2ec65ba799
ExplosionPrimeEvent: require a positive explosion radius
2022-05-21 23:22:04 +01:00
Dylan K. Taylor
3dd7c09351
Improve documentation of ExplosionPrimeEvent and EntityExplodeEvent
2022-05-21 23:00:34 +01:00
Dylan K. Taylor
afc6e8878d
EntityExplodeEvent: clamp yield in range 0-100
2022-05-21 22:44:45 +01:00
Dylan K. Taylor
331b05c681
Improve documentation of EntitySpawnEvent and EntityDespawnEvent
2022-05-21 22:11:37 +01:00
IvanCraft623
3abe80184a
Update ItemSpawnEvent doc ( #5059 )
2022-05-21 22:09:21 +01:00
Dylan K. Taylor
7618b13c6e
ItemDespawnEvent: improve documentation
2022-05-21 21:57:14 +01:00
Dylan K. Taylor
351cd4bfd7
Improve documentation of world-related events
2022-05-21 21:46:53 +01:00
Dylan K. Taylor
1154c7c1ab
PlayerQuitEvent: improve documentation
2022-05-21 21:23:13 +01:00
Dylan K. Taylor
4a3e42f82e
PlayerTransferEvent: add documentation
2022-05-21 21:21:51 +01:00