d221d6ee创建于 2025年12月18日历史提交
文件最后提交记录最后更新时间
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
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). 3 年前
Merge branch 'next-minor' into next-major 3 年前
Merge branch 'next-minor' into next-major 3 年前
Implement firework rocket & firework star (#5455) Co-authored-by: Dylan T <dktapps@pmmp.io> Co-authored-by: ipad54 <63200545+ipad54@users.noreply.github.com>7 个月前
First look at separating disconnect reason and disconnect screen messages (#4512) 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Fix CS 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use 'enchanting' terminology 'enchant' just didn't feel right, being a verb. All these things pertain to the act of enchanting. This is now also consistent with CraftingTransaction etc. The ship already sailed on EnchantInventory, which will have to be renamed at a later datte. However, that was already inconsistent with 'enchanting table', so that's the odd one out here. 2 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Add support for basic entity picking via middle-click (#5397) Support for more advanced stuff like NBT copying wasn't added in this PR, as the NBT used by PM is currently an inconsistent mess and doesn't play nice with vanilla. In the interests of avoiding this mess propagating, it's been left for another time. Adds PlayerEntityPickEvent a la PlayerBlockPickEvent and Entity->getPickedItem(). 1 年前
Merge branch 'next-minor' into next-major 3 年前
Merge branch 'next-minor' into next-major 3 年前
Merge branch 'next-minor' into next-major 3 年前
Merge branch 'next-minor' into next-major 3 年前
PlayerInteractEvent: added APIs to independently control reaction of item and block (#4683) This allows, for example, banning the usage of spawn eggs, without preventing opening of doors, without the need for item ID whitelists. It also allows customizing the behaviour of item and block interactions when sneaking - it's now possible to force spawn eggs to work when sneaking, or force containers to open. Finally, this also allows preventing any interaction at all without preventing block placement (by setting both to false). Since cancelling the event will typically prevent placement too (which might not be desired). Side note: Blocks are now always synced when right-clicking on a block. This differs from the previous behaviour, where the blocks were only synced when the action "failed". However, since this change introduces a situation where the action may succeed but have different results than the client expects, it's best to just always sync blocks in this situation. Fixes #3267 1 年前
Update documentation5 个月前
Use 'enchanting' terminology 'enchant' just didn't feel right, being a verb. All these things pertain to the act of enchanting. This is now also consistent with CraftingTransaction etc. The ship already sailed on EnchantInventory, which will have to be renamed at a later datte. However, that was already inconsistent with 'enchanting table', so that's the odd one out here. 2 年前
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. 3 年前
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. 3 年前
Merge branch 'next-minor' into next-major 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
First look at separating disconnect reason and disconnect screen messages (#4512) 3 年前
Support localized disconnect screen messages for PlayerLoginEvent 3 年前
Rename PlayerMissedSwingEvent -> PlayerMissSwingEvent all the other events are present tense, so it doesn't make sense for this one to be past tense. 2 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
PlayerPreLoginEvent: improve array type info 1 年前
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). 3 年前
Allow offering different resource packs to different players (#6249) closes #6248 2 年前
Implemented Respawn Anchor (#6646) PlayerRespawnAnchorUseEvent is also added with options SET_SPAWN and EXPLODE, which allows plugins to customise the outcome of using the anchor in PM, which currently doesn't support dimensions. The event is also cancellable.11 个月前
Merge branch 'next-minor' into next-major 3 年前
Merge branch 'next-minor' into next-major 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Separate sneak keydown flag from crouching flag (#6867) This introduces a "sneak pressed" property, which may differ from "is sneaking". Notably, the player may get forced to sneak when stuck under a slab in a 1.5 block high space even when they release the sneak key. In this case they should be able to interact with blocks as if they were standing tall. Additionally, pressing sneak & space together while flying disables interacting with blocks without causing the player to physically sneak. We probably should check the gameplay conditions for physical sneaking on the server side at some point, but this is good enough for now. PlayerToggleSneakEvent will be called when the player presses or releases the sneak key, however if the resulting sneak state doesn't match what the player wanted (e.g. releasing sneak while stuck under a slab), the event will be cancelled by default. Plugins can use @handleCancelled to detect this. closes #6066 closes #6733 Co-authored-by: Dylan T. <dktapps@pmmp.io>6 个月前
Merge branch 'next-minor' into next-major 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Localized remaining disconnection screens (except one or two that should never actually happen) 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前