Skip to content

Commit

Permalink
Update Commands.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavius12 committed Jun 5, 2015
1 parent 9ea7606 commit f46e3df
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CustomAlerts/src/CustomAlerts/Commands/Commands.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* CustomAlerts (v1.4) by EvolSoft
* CustomAlerts (v1.5) by EvolSoft
* Developer: EvolSoft (Flavius12)
* Website: http://www.evolsoft.tk
* Date: 09/05/2015 01:51 PM (UTC)
* Date: 05/06/2015 10:52 AM (UTC)
* Copyright & License: (C) 2014-2015 EvolSoft
* Licensed under MIT (https://github.com/EvolSoft/CustomAlerts/blob/master/LICENSE)
*/
Expand Down Expand Up @@ -54,6 +54,10 @@ public function onCommand(CommandSender $sender, Command $cmd, $label, array $ar
}elseif($args[0]=="reload"){
if($sender->hasPermission("customalerts.reload")){
$this->plugin->reloadConfig();
//Reload Motd
if(!CustomAlerts::getAPI()->isMotdCustom()){
CustomAlerts::getAPI()->setMotdMessage($this->plugin->getServer()->getMotd());
}
$sender->sendMessage($this->plugin->translateColors("&", CustomAlerts::PREFIX . "&aConfiguration Reloaded."));
break;
}else{
Expand Down

0 comments on commit f46e3df

Please sign in to comment.