Skip to content

Turn notify() into an alias of alert() #136

Open
@prplwtf

Description

@prplwtf

Alert has been added to BlueprintExtensionLibrary

Notify should be deprecated and aliased to alert. It shouldn't be removed as recent extensions rely on it.

/**
* Display a notification on the Pterodactyl admin panel (on next page load).
*
* @param string $text Notification contents
*
* [BlueprintExtensionLibrary documentation](https://blueprint.zip/docs/?page=documentation/$blueprint)
*/
public function notify(string $text): void
{
$this->dbSet('blueprint', 'notification:text', $text);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:adminIssues or pull requests related to the Pterodactyl admin area.scope:backendIssues or pull requests related to Blueprint's backend.scope:extensionsIssues or pull requests related to Blueprint extensions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions