/Toast

This virion works in PocketMine-MP only

Primary LanguagePHPApache License 2.0Apache-2.0

Toast

Toast system virion

Description
A pocketmine virion that supports plugins to make a Toast system

Usage

Import Toast classes.

use nayukikuu\Toast;

Create a Toast instance

$this->toast = new Toast($this);

$plugin contains an instance of your PluginBase

Method send

  • Send in person
$this->toast->sendToast($player, "Title", "Subtitle");
  • Multi-person send
$this->toast->broadcastToast("Title", "Subtitle");

Advice