Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
4cc26be8342a80d0959efb4e622b1cc2fd01c47f
PocketMine-MP
/
src
/
event
/
player
下载当前目录
G
GitHub
Update documentation
d221d6ee
创建于
2025年12月18日
历史提交
文件
最后提交记录
最后更新时间
PlayerBedEnterEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerBedLeaveEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerBlockPickEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerBucketEmptyEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerBucketEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerBucketFillEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerChangeSkinEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerChatEvent.php
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 年前
PlayerCreationEvent.php
Merge branch 'next-minor' into next-major
3 年前
PlayerDataSaveEvent.php
Merge branch 'next-minor' into next-major
3 年前
PlayerDeathEvent.php
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 个月前
PlayerDisconnectEventTrait.php
First look at separating disconnect reason and disconnect screen messages (#4512)
3 年前
PlayerDisplayNameChangeEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerDropItemEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerDuplicateLoginEvent.php
Fix CS
3 年前
PlayerEditBookEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerEmoteEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerEnchantingOptionsRequestEvent.php
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 年前
PlayerEntityInteractEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerEntityPickEvent.php
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 年前
PlayerEvent.php
Merge branch 'next-minor' into next-major
3 年前
PlayerExhaustEvent.php
Merge branch 'next-minor' into next-major
3 年前
PlayerExperienceChangeEvent.php
Merge branch 'next-minor' into next-major
3 年前
PlayerGameModeChangeEvent.php
Merge branch 'next-minor' into next-major
3 年前
PlayerInteractEvent.php
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 年前
PlayerItemConsumeEvent.php
Update documentation
5 个月前
PlayerItemEnchantEvent.php
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 年前
PlayerItemHeldEvent.php
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 年前
PlayerItemUseEvent.php
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 年前
PlayerJoinEvent.php
Merge branch 'next-minor' into next-major
3 年前
PlayerJumpEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerKickEvent.php
First look at separating disconnect reason and disconnect screen messages (#4512)
3 年前
PlayerLoginEvent.php
Support localized disconnect screen messages for PlayerLoginEvent
3 年前
PlayerMissSwingEvent.php
Rename PlayerMissedSwingEvent -> PlayerMissSwingEvent all the other events are present tense, so it doesn't make sense for this one to be past tense.
2 年前
PlayerMoveEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerPostChunkSendEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerPreLoginEvent.php
PlayerPreLoginEvent: improve array type info
1 年前
PlayerQuitEvent.php
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 年前
PlayerResourcePackOfferEvent.php
Allow offering different resource packs to different players (#6249) closes #6248
2 年前
PlayerRespawnAnchorUseEvent.php
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 个月前
PlayerRespawnEvent.php
Merge branch 'next-minor' into next-major
3 年前
PlayerToggleFlightEvent.php
Merge branch 'next-minor' into next-major
3 年前
PlayerToggleGlideEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerToggleSneakEvent.php
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 个月前
PlayerToggleSprintEvent.php
Merge branch 'next-minor' into next-major
3 年前
PlayerToggleSwimEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
PlayerTransferEvent.php
Localized remaining disconnection screens (except one or two that should never actually happen)
3 年前
PlayerViewDistanceChangeEvent.php
Use PHP-CS-Fixer to enforce file header presence
3 年前