Update 'AdminMail/src/AdminMail/EmailTask.php'

This commit is contained in:
Josh North 2017-07-26 09:44:09 -04:00
parent a07642cbb4
commit 56e3950721

View File

@ -22,7 +22,7 @@ class EmailTask extends PluginTask {
$this->adminmessage = $adminmessage;
}
public function onRun($tick) {
public function onRun(int $currentTick) {
$player = $this->getOwner()->getServer()->getPlayer($this->playername);
$name = $player->getName();
$admin = $this->adminmail;