14 events in this category
Callback parameters: array spell data.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/Admin/SpellsController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellCreated(), function ($createdBy, $spell) {
// Handle stormnodes:admin:spells:spell:created
// Data keys: created_by, spell
});
}Callback parameters: int spell id, array spell data.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/Admin/SpellsController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellDeleted(), function ($deletedBy, $spell) {
// Handle stormnodes:admin:spells:spell:deleted
// Data keys: deleted_by, spell
});
}Callback parameters: int spell id, array export data.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellExported(), function ($id, $data) {
// Handle stormnodes:admin:spells:spell:exported
// Parameters: int spell id, array export data.
});
}Callback parameters: int spell id, string error message.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellNotFound(), function ($id, $message) {
// Handle stormnodes:admin:spells:spell:not:found
// Parameters: int spell id, string error message.
});
}Callback parameters: int spell id, array spell data.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellRetrieved(), function ($id, $data) {
// Handle stormnodes:admin:spells:spell:retrieved
// Parameters: int spell id, array spell data.
});
}Callback parameters: int realm id, array spells.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellsByRealmRetrieved(), function ($id, $spells) {
// Handle stormnodes:admin:spells:by:realm:retrieved
// Parameters: int realm id, array spells.
});
}Callback parameters: string error message, array context.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellsError(), function ($message, $context) {
// Handle stormnodes:admin:spells:error
// Parameters: string error message, array context.
});
}Callback parameters: array import data, array results.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellsImported(), function ($data, $results) {
// Handle stormnodes:admin:spells:spells:imported
// Parameters: array import data, array results.
});
}Callback parameters: array spells list.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellsRetrieved(), function ($list) {
// Handle stormnodes:admin:spells:retrieved
// Parameters: array spells list.
});
}Callback parameters: int spell id, array old data, array new data.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/Admin/SpellsController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellUpdated(), function ($spell, $updatedBy, $updatedData) {
// Handle stormnodes:admin:spells:spell:updated
// Data keys: spell, updated_by, updated_data
});
}Callback parameters: int spell id, array variable data.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/Admin/SpellsController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellVariableCreated(), function ($spellId, $variable) {
// Handle stormnodes:admin:spells:variable:created
// Data keys: spell_id, variable
});
}Callback parameters: int variable id, array variable data.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/Admin/SpellsController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellVariableDeleted(), function ($variable) {
// Handle stormnodes:admin:spells:variable:deleted
// Data keys: variable
});
}Callback parameters: int spell id, array variables.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellVariablesRetrieved(), function ($id, $variables) {
// Handle stormnodes:admin:spells:variables:retrieved
// Parameters: int spell id, array variables.
});
}Callback parameters: int variable id, array old data, array new data.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/Admin/SpellsController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\SpellsEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(SpellsEvent::onSpellVariableUpdated(), function ($updatedData, $variable) {
// Handle stormnodes:admin:spells:variable:updated
// Data keys: updated_data, variable
});
}