Class WorldDifficultyChangeEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.world.WorldEvent
io.papermc.paper.event.world.WorldDifficultyChangeEvent

@NullMarked public class WorldDifficultyChangeEvent extends WorldEvent
Called when a world's difficulty is changed, either by command or by api.

If the world is in hardcore the resulting difficulty will always be Difficulty.HARD