Skip to content

NoobMCBG/ToastBroadcaster

Repository files navigation

ToastBroadcaster | v1.0.0



✔️ Create toast style notifications for all your players ✔️


Features

  • Create toast style notifications for all your players

Config

---
#  
#  ░████████╗░█████╗░░█████╗░░██████╗████████╗██████╗░██████╗░░█████╗░░█████╗░██████╗░░█████╗░░█████╗░░██████╗████████╗███████╗██████╗░
#  ░╚══██╔══╝██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔══██╗
#  ░░░░██║░░░██║░░██║███████║╚█████╗░░░░██║░░░██████╦╝██████╔╝██║░░██║███████║██║░░██║██║░░╚═╝███████║╚█████╗░░░░██║░░░█████╗░░██████╔╝
#  ░░░░██║░░░██║░░██║██╔══██║░╚═══██╗░░░██║░░░██╔══██╗██╔══██╗██║░░██║██╔══██║██║░░██║██║░░██╗██╔══██║░╚═══██╗░░░██║░░░██╔══╝░░██╔══██╗
#  ░░░░██║░░░╚█████╔╝██║░░██║██████╔╝░░░██║░░░██████╦╝██║░░██║╚█████╔╝██║░░██║██████╔╝╚█████╔╝██║░░██║██████╔╝░░░██║░░░███████╗██║░░██║
#  ░░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝╚═════╝░░░░╚═╝░░░╚═════╝░╚═╝░░╚═╝░╚════╝░╚═╝░░╚═╝╚═════╝░░╚════╝░╚═╝░░╚═╝╚═════╝░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝
title: "§d[ToastBroadcaster]" # Title toast
broadcast:
  delay: 60 # Delay message
  message: # All message broadcast
  - "§a1"
  - "§b2"
  - "§c3"
...

For Developer

  • You can access to ToastBroadcaster by using ToastBroadcaster::getInstance()
  • sendToast usage:
$player = $event->getPlayer();
$title = "[Title]";
$subtitle = "Toast";
ToastBroadcaster::getInstance()->sendToast($player, $title, $subtitle);
  • broadcastToast usage:
$player = $event->getPlayer();
$title = "[Title]";
$subtitle = "Toast";
ToastBroadcaster::getInstance()->broadcastToast($title, $subtitle);

Install

  • Step 1: Click the Direct Download button to download the plugin
  • Step 2: move the file ToastBroadcaster.phar into the file plugins
  • Step 3: Restart server for plugins to work