Skip to content

Add WorldDifficultyChangeEvent#12471

Merged
lynxplay merged 17 commits into
PaperMC:mainfrom
NonSwag:difficulty-change-event
Jul 26, 2025
Merged

Add WorldDifficultyChangeEvent#12471
lynxplay merged 17 commits into
PaperMC:mainfrom
NonSwag:difficulty-change-event

Conversation

@NonSwag
Copy link
Copy Markdown
Contributor

@NonSwag NonSwag commented Apr 24, 2025

I added a WorldDifficultyChangeEvent to allow cancellation and tracking of difficulty changes
My specific usecase for this is to set the difficulty of specific other worlds to the same when changed via command/API

@NonSwag NonSwag requested a review from a team as a code owner April 24, 2025 15:03
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Apr 24, 2025
Comment thread paper-server/patches/features/0030-call-WorldDifficultyChangeEvent.patch Outdated
@NonSwag NonSwag requested a review from lynxplay April 24, 2025 15:25
@Doc94
Copy link
Copy Markdown
Member

Doc94 commented Apr 24, 2025

Why is this a feature?

@lynxplay
Copy link
Copy Markdown
Contributor

Merger can fix it hopefully 😅 or nonswag gets to it.

@NonSwag
Copy link
Copy Markdown
Contributor Author

NonSwag commented Apr 24, 2025

Why is this a feature?

I added a description

@NonSwag
Copy link
Copy Markdown
Contributor Author

NonSwag commented Apr 24, 2025

Merger can fix it hopefully 😅 or nonswag gets to it.

the var thing? i already "fixed" that

@lynxplay
Copy link
Copy Markdown
Contributor

Your changes to mojang internals are in feature patches instead of the per-file patches.

@NonSwag NonSwag force-pushed the difficulty-change-event branch from 2d6b3c6 to 2e39f47 Compare April 24, 2025 17:31
Comment thread paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java Outdated
Comment thread paper-server/patches/sources/net/minecraft/server/MinecraftServer.java.patch Outdated
NonSwag added 4 commits May 1, 2025 11:01
# Conflicts:
#	paper-server/patches/features/0015-Moonrise-optimisation-patches.patch
# Conflicts:
#	paper-server/patches/features/0015-Moonrise-optimisation-patches.patch
Comment thread paper-server/patches/sources/net/minecraft/server/MinecraftServer.java.patch Outdated
@github-project-automation github-project-automation Bot moved this from Awaiting review to Awaiting final testing in Paper PR Queue Jun 7, 2025
NonSwag added 2 commits July 17, 2025 21:42
# Conflicts:
#	paper-server/patches/features/0016-Moonrise-optimisation-patches.patch
#	paper-server/patches/sources/net/minecraft/server/MinecraftServer.java.patch
@NonSwag
Copy link
Copy Markdown
Contributor Author

NonSwag commented Jul 17, 2025

Rebased to 1.21.8

# Conflicts:
#	paper-server/patches/features/0016-Moonrise-optimisation-patches.patch
Copy link
Copy Markdown
Member

@Machine-Maker Machine-Maker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talked with @NonSwag

@github-project-automation github-project-automation Bot moved this from Awaiting final testing to Changes required in Paper PR Queue Jul 26, 2025
@github-project-automation github-project-automation Bot moved this from Changes required to Awaiting final testing in Paper PR Queue Jul 26, 2025
@lynxplay lynxplay merged commit a576361 into PaperMC:main Jul 26, 2025
4 checks passed
@github-project-automation github-project-automation Bot moved this from Awaiting final testing to Merged in Paper PR Queue Jul 26, 2025
@NonSwag NonSwag deleted the difficulty-change-event branch July 26, 2025 21:51
RandomTomato pushed a commit to RandomTomato/Paper that referenced this pull request Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

8 participants