10 events in this category
Callback parameters: string user uuid, string api key id.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\UserEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(UserEvent::onUserApiKeyCreated(), function ($uuid, $id) {
// Handle stormnodes:user:api:create
// Parameters: string user uuid, string api key id.
});
}Callback parameters: string user uuid, string api key id.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\UserEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(UserEvent::onUserApiKeyDeleted(), function ($uuid, $id) {
// Handle stormnodes:user:api:delete
// Parameters: string user uuid, string api key id.
});
}Callback parameters: string user uuid, string api key id.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\UserEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(UserEvent::onUserApiKeyUpdated(), function ($uuid, $id) {
// Handle stormnodes:user:api:update
// Parameters: string user uuid, string api key id.
});
}Callback parameters: array user data, int user id, array created by.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/Admin/PterodactylImporterController.phpbackend/app/Controllers/Admin/UsersController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\UserEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(UserEvent::onUserCreated(), function ($createdBy, $user, $userId) {
// Handle stormnodes:user:created
// Data keys: created_by, user, user_id
});
}Callback parameters: array user data, array deleted by.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/Admin/UsersController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\UserEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(UserEvent::onUserDeleted(), function ($deletedBy, $user) {
// Handle stormnodes:user:deleted
// Data keys: deleted_by, user
});
}Callback parameters: string user uuid, string ssh key id.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\UserEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(UserEvent::onUserSshKeyCreated(), function ($uuid, $id) {
// Handle stormnodes:user:ssh:create
// Parameters: string user uuid, string ssh key id.
});
}Callback parameters: string user uuid, string ssh key id.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\UserEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(UserEvent::onUserSshKeyDeleted(), function ($uuid, $id) {
// Handle stormnodes:user:ssh:delete
// Parameters: string user uuid, string ssh key id.
});
}Callback parameters: string user uuid, string ssh key id.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\UserEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(UserEvent::onUserSshKeyUpdated(), function ($uuid, $id) {
// Handle stormnodes:user:ssh:update
// Parameters: string user uuid, string ssh key id.
});
}Callback parameters: string user uuid.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/User/User/SessionController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\UserEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(UserEvent::onUserUpdate(), function ($userUuid) {
// Handle stormnodes:user:update
// Data keys: user_uuid
});
}Callback parameters: array user data, array updated data, array updated by.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/Admin/UsersController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\UserEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(UserEvent::onUserUpdated(), function ($updatedBy, $updatedData, $user) {
// Handle stormnodes:user:updated
// Data keys: updated_by, updated_data, user
});
}