Skip to content

Instantly share code, notes, and snippets.

@jasonw4331
Last active September 6, 2018 17:03
Show Gist options
  • Save jasonw4331/186f325f76a331d8668c to your computer and use it in GitHub Desktop.
Save jasonw4331/186f325f76a331d8668c to your computer and use it in GitHub Desktop.
Test - Auto-generated gist plugin stub by pmt.mcpe.me InstaPlugin
name: Temp
author: "jasonwynn10"
version: 0.1.0
api:
- 2.1.0
- 3.0.0-ALPHA1
- 3.0.0-ALPHA2
- 3.0.0-ALPHA3
- 3.0.0-ALPHA4
- 3.0.0-ALPHA5
main: jasonwynn10\Main
description: ""
load: STARTUP
commands:
command1:
usage: ""
permission: permission
description: ""
permissions:
permission:
default:
children:
child.permission:
default:
# instructions go here
---
#
...
<?php
namespace jasonwynn10;
use pocketmine\plugin\PluginBase;
use pocketmine\command\CommandSender;
use pocketmine\command\Command;
use pocketmine\event\Listener;
use pocketmine\utils\TextFormat as TF;
use pocketmine\Player;
class Main extends PluginBase {
public function onEnable() {
$this->saveDefaultConfig();
// $this->getServer()->getPluginManager()->registerEvents($this, $this);
$this->getLogger()->notice(TF::GREEN."Enabled!");
}
public function onCommand(CommandSender $sender, Command $command, $label, array $args) {
if(strtolower($command) == "") {
//
}
return false;
}
public function onDisable() {
$this->getLogger()->notice(TF::GREEN."Disabled!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment