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.

55 lines
957 B

  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\schedulerPluginTask;
  15. use pocketmine\Player;
  16. use Ad5001\FastTravel\Main;
  17. class FastingTask extends PluginTask {
  18. public function __construct(Main $main) {
  19. parent::__construct($main);
  20. $this->main = $main;
  21. $this->server = $main->getServer();
  22. }
  23. public function onRun($tick) {
  24. foreach($this->server->getPlayers() as $p) {
  25. }
  26. }
  27. }