Skip to content

Commit

Permalink
Fixed first join message bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavius12 committed Aug 12, 2018
1 parent ab09bef commit 3f949ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CustomAlerts/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CustomAlerts
main: CustomAlerts\CustomAlerts
version: 2.0
version: 2.1
api: [3.0.0]
load: STARTUP
author: EvolSoft
Expand Down
2 changes: 1 addition & 1 deletion CustomAlerts/src/CustomAlerts/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()){
Expand Down

0 comments on commit 3f949ce

Please sign in to comment.