From 3f949ceecb4aec3ceb356c89401bd2eb4754aceb Mon Sep 17 00:00:00 2001 From: Flavius12 Date: Sun, 12 Aug 2018 17:58:09 +0200 Subject: [PATCH] Fixed first join message bug --- CustomAlerts/plugin.yml | 2 +- CustomAlerts/src/CustomAlerts/EventListener.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CustomAlerts/plugin.yml b/CustomAlerts/plugin.yml index f1e7983..b28e44c 100755 --- a/CustomAlerts/plugin.yml +++ b/CustomAlerts/plugin.yml @@ -1,6 +1,6 @@ name: CustomAlerts main: CustomAlerts\CustomAlerts -version: 2.0 +version: 2.1 api: [3.0.0] load: STARTUP author: EvolSoft diff --git a/CustomAlerts/src/CustomAlerts/EventListener.php b/CustomAlerts/src/CustomAlerts/EventListener.php index c933b55..5b631d5 100755 --- a/CustomAlerts/src/CustomAlerts/EventListener.php +++ b/CustomAlerts/src/CustomAlerts/EventListener.php @@ -122,7 +122,7 @@ public function onPlayerJoin(PlayerJoinEvent $event){ //Join Message $cevent = new CustomAlertsJoinEvent($player); if(!$player->hasPlayedBefore() && $this->plugin->isFirstJoinMessageEnabled()){ - $cevent->setMessage($this->plugin->getMotdMessage()); + $cevent->setMessage($this->plugin->getFirstJoinMessage($player)); }else if($this->plugin->isJoinMessageHidden()){ $cevent->setMessage(""); }else if($this->plugin->isJoinMessageCustom()){