/**
  * @param int $currentTick
  */
 public function onRun($currentTick)
 {
     $this->plugin->broadcastTip(Utils::getRandom($this->plugin->getConfig()->getNested("tip.autoMessages")));
 }
 /**
  * @param int $currentTick
  */
 public function onRun($currentTick)
 {
     $this->plugin->broadcastTip($this->plugin->getConfig()->getNested("tip.blinkingMessage"));
 }
 /**
  * @param int $currentTick
  */
 public function onRun($currentTick)
 {
     $this->plugin->getServer()->getNetwork()->setName(str_replace(["{SERVER_DEFAULT_LEVEL}", "{SERVER_MAX_PLAYER_COUNT}", "{SERVER_PLAYER_COUNT}", "{SERVER_NAME}", "{SERVER_PORT}", "{SERVER_TPS}"], [$this->plugin->getServer()->getDefaultLevel()->getName(), $this->plugin->getServer()->getMaxPlayers(), count($this->plugin->getServer()->getOnlinePlayers()), $this->plugin->getServer()->getServerName(), $this->plugin->getServer()->getPort(), $this->plugin->getServer()->getTicksPerSecond()], $this->plugin->getConfig()->getNested("motd.dynamicMotd")));
 }
 /**
  * @param int $currentTick
  */
 public function onRun($currentTick)
 {
     $this->plugin->getServer()->broadcastMessage(Utils::getRandom($this->plugin->getConfig()->getNested("message.messages")));
 }
 /**
  * @param int $currentTick
  */
 public function onRun($currentTick)
 {
     $this->plugin->broadcastPopup($this->plugin->getConfig()->getNested("popup.infiniteMessage"));
 }
 /** 
  * @param PlayerChatEvent $event
  * @priority MONITOR
  */
 public function onPlayerChat(PlayerChatEvent $event)
 {
     if (!$this->plugin->getConfig()->getNested("color.colorChat") and !$event->getPlayer()->hasPermission("easymessages.action.color")) {
         $event->setMessage(Utils::replaceSymbols($event->getMessage(), true));
     }
 }