Last active
April 13, 2018 16:44
-
-
Save PJZ9n/1797dcfc0486c8a0d575698acd4587c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace パス; | |
use pocketmine\scheduler\PluginTask; | |
class StatusTask extends PluginTask { | |
public $player; | |
public function __construct($owner, $player) { | |
parent::__construct($owner); | |
$this->player = $player; | |
} | |
public function onRun(int $ticks) { | |
$this->player->sendMessage("こんにちは!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment