Skip to content

Instantly share code, notes, and snippets.

@MCPEAbdu77
Created February 27, 2016 10:27
Show Gist options
  • Save MCPEAbdu77/3d4a3099d991774dc1dc to your computer and use it in GitHub Desktop.
Save MCPEAbdu77/3d4a3099d991774dc1dc to your computer and use it in GitHub Desktop.
World Edit - Auto-generated gist plugin stub by pmt.mcpe.me InstaPlugin
---
name: World Edit
author: ~
version: "1.0"
api:
- 0.14.0
main: MCPEAbdu77\World Edit\Main
commands: []
permissions: []
...
<?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;
}
}
<?php
namespace MCPEAbdu77\World Edit;
class My1Class{
public function __construct(){
// TODO Implement
}
}
<?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