Skip to content

WorldDifficultyChangeEvent ​

final class · pocketmine\event\world\WorldDifficultyChangeEvent · source

Extends WorldEvent

Called when a world's difficulty is changed.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\World $world, int $oldDifficulty, int $newDifficulty)

getNewDifficulty() ​

php
public function getNewDifficulty() : int

getOldDifficulty() ​

php
public function getOldDifficulty() : int

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.