Travel in MCPE faster and easier than you ever tought !
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1019B

  1. <?php
  2. /*
  3. _____ _ _____ _
  4. | ___| __ _ ___ | |_ |_ _| _ __ __ _ __ __ ___ | |
  5. | |_ / _` | / __| | __| | | | '__| / _` | \ \ / / / _ \ | |
  6. | _| | (_| | \__ \ | |_ | | | | | (_| | \ V / | __/ | |
  7. |_| \__,_| |___/ \__| |_| |_| \__,_| \_/ \___| |_|
  8. Travel in MCPE faster and easier than you ever tought !
  9. @author Ad5001
  10. @link http://github.com/Ad5001/FastTravel
  11. */
  12. namespace Ad5001\FastTravel\tasks;
  13. use pocketmine\Server;
  14. use pocketmine\scheduler\PluginTask;
  15. use pocketmine\Player;
  16. use Ad5001\FastTravel\Main;
  17. class UpCooldownTask extends PluginTask {
  18. public function __construct(Main $main, Player $player) {
  19. parent::__construct($main);
  20. $this->main = $main;
  21. $this->player = $player->getName();
  22. $this->server = $main->getServer();
  23. }
  24. public function onRun($tick) {
  25. unset($this->main->cancelUpAfterDown[$this->player]);
  26. }
  27. }