Skip to content

RaidStore 5.46.0 ​

final class · pocketmine\world\raid\RaidStore · source

Saved raids of every world, in raids.json in the server data folder (like dragon_fights.json): world folder name => {nextId, raids: [Raid::toArray()...]}.

Constants ​

FILE_NAME ​

php
public const FILE_NAME = "raids.json"

Methods ​

__construct() ​

php
public function __construct(?string $path)

forDataPath() ​

php
public static function forDataPath(string $dataPath) : self

Returns the store shared by the worlds of the server with this data folder ("" keeps raids in memory only).

get() ​

php
public function get(string $worldName) : array

set() ​

php
public function set(string $worldName, int $nextId, array $raids) : void

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