Skip to content

EvtPlayerGameModeChange Patch - #8839

Open
AnOwlBe wants to merge 3 commits into
SkriptLang:dev/patchfrom
AnOwlBe:EvtPlayerGameModeChange-Patch
Open

EvtPlayerGameModeChange Patch#8839
AnOwlBe wants to merge 3 commits into
SkriptLang:dev/patchfrom
AnOwlBe:EvtPlayerGameModeChange-Patch

Conversation

@AnOwlBe

@AnOwlBe AnOwlBe commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Problem

Fixes a few issues and does some small cleanup

Fixed an issue where the event only triggered when a player changed their gamemode to survival
Fixed an issue where the - (marking nullable) was missing for the classinfo in the pattern in the event (for some reason this didn't spit errors before?)
Fixes an 'issue' where the check called getSingle and did a manual check
it now uses gamemode.check which additionally allows for e.g. on gamemode change to survival or creative: which was previously not possible
in the init changed int i (meaning matched pattern) to matchedPattern and literals to args
Changes the var name from registry to eventValueRegistry (imo needed since 2 registries are present not just one)

Solution

Explained above

Testing Completed

Manual testing completed (and actually did deeper testing this time) all appears to work fine
quicktest passed JUnitQuick failed due to the inventorypickupthing so will have to rely on github's junit tests

Supporting Information


Completes: none
Related: closes and resolves #8837
AI assistance: none

@AnOwlBe
AnOwlBe requested a review from a team as a code owner August 16, 2026 02:03
@AnOwlBe
AnOwlBe requested review from Absolutionism and Burbulinis and removed request for a team August 16, 2026 02:03
@AnOwlBe AnOwlBe changed the title initial commit EvtPlayerGameModeChange Patch Aug 16, 2026
@sovdeeth

sovdeeth commented Aug 16, 2026

Copy link
Copy Markdown
Member

This should also make it support plural gamemodes (AND lists) if it doesn't already.

@skriptlang-automation skriptlang-automation Bot added the needs reviews A PR that needs additional reviews label Aug 16, 2026
@skriptlang-automation skriptlang-automation Bot added patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. and removed needs reviews A PR that needs additional reviews labels Aug 16, 2026
@AnOwlBe AnOwlBe mentioned this pull request Aug 18, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants