Skip to content

Replace deprecated event.source with event.player #1027

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: wiki
Choose a base branch
from

Conversation

gpercem
Copy link

@gpercem gpercem commented Mar 28, 2025

Replaced every instance of event.source with event.player. This fixes the error when trying to use this script in @minecraft/server 2.0.0-beta onwards.

Replaced every instance of event.source with event.player. This fixes the error when trying to use this script in @minecraft/server 2.0.0-beta onwards.
@ThomasOrs
Copy link
Contributor

Worth waiting until 2.0.0 is stable?

@SmokeyStack SmokeyStack added the scripting-2.0.0-cleanup This issue or PR will have to wait until Scripting 2.0.0 enters RC phase. label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scripting-2.0.0-cleanup This issue or PR will have to wait until Scripting 2.0.0 enters RC phase.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants