RaidStore 5.46.0
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) : selfReturns 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) : arrayset()
php
public function set(string $worldName, int $nextId, array $raids) : void