Created
February 27, 2016 10:27
-
-
Save MCPEAbdu77/3d4a3099d991774dc1dc to your computer and use it in GitHub Desktop.
World Edit - Auto-generated gist plugin stub by pmt.mcpe.me InstaPlugin
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
--- | |
name: World Edit | |
author: ~ | |
version: "1.0" | |
api: | |
- 0.14.0 | |
main: MCPEAbdu77\World Edit\Main | |
commands: [] | |
permissions: [] | |
... |
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 MCPEAbdu77\World Edit; | |
use pocketmine\command\CommandSender; | |
use pocketmine\command\Command; | |
use pocketmine\event\Listener; | |
use pocketmine\plugin\PluginBase; | |
class Main extends PluginBase{ | |
public function onEnable(){ | |
// $this->getServer()->getPluginManager()->registerEvents($this, $this); | |
$this->getServer()->getScheduler()->scheduleDelayedRepeatingTask(new My1PluginTask($this), 20); // TODO update the interval | |
} | |
public function onCommand(CommandSender $issuer, Command $cmd, $label, array $params){ | |
switch($cmd->getName()){ | |
} | |
return false; | |
} | |
} |
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 MCPEAbdu77\World Edit; | |
class My1Class{ | |
public function __construct(){ | |
// TODO Implement | |
} | |
} |
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 MCPEAbdu77\World Edit; | |
use pocketmine\plugin\PluginTask; | |
class My1PluginTask extends PluginTask{ | |
public function __construct(Main $main){ | |
$this->main = $main; | |
} | |
public function onRun($ticks){ | |
// TODO Implement | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment