Skip to content

Instantly share code, notes, and snippets.

$this->api->console->register("balus", "kills a player", array($this, "commandHandler"));
public function commandHandler($command, $params, $issuer) {
}
public function init(){
$this->api->console->register("balus", "kills a player", array($this, "commandHandler"));
}
public function __destruct(){
}
public function commandHandler($command, $params, $issuer) {
}
<?php
/*
__PocketMine Plugin__
name=AdonPlugin
description=Udon
version=0.1
author=Adon
class=AdonPlugin
apiversion=6,7,8,9,10
*/
<?php
/*
__PocketMine Plugin__
name=GroupPermissions
description=Manage permissions between groups
version=1.0
author=marksmir
class=GroupPermissions
apiversion=10
*/
<?php
/*
__PocketMine Plugin__
name=ExamplePlugin
version=0.0.1
author=shoghicp
class=ExamplePlugin
apiversion=10
*/
<?php
/*
__PocketMine Plugin__
name=ExamplePlugin
version=0.0.1
author=shoghicp
class=ExamplePlugin
apiversion=10
*/
<?php
/*
__PocketMine Plugin__
name=ExamplePlugin
version=0.0.1
author=shoghicp
class=ExamplePlugin
apiversion=10
*/
<?php
/*
__PocketMine Plugin__
name=ExamplePlugin
version=0.0.1
author=shoghicp
class=ExamplePlugin
apiversion=10
*/
<?php
/*
修正したソースコード
*/
class takumi implements Plugin{
private $api;
public function __construct(ServerAPI $api, $server = false){