Created
April 3, 2014 09:56
-
-
Save MinecrafterJPN/9951768 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/* | |
__PocketMine Plugin__ | |
name=GroupChat | |
description=Group chat plugin | |
version=1.0 | |
author=MinecrafterJPN | |
class=GroupChat | |
apiversion=11 | |
*/ | |
class GroupChat implements Plugin | |
{ | |
private $api; | |
public function __construct(ServerAPI $api, $server = false) | |
{ | |
$this->api = $api; | |
} | |
public function init() | |
{ | |
$this->api->console->register("gchat", "Group chat command", array($this, "commandHandler")); | |
} | |
public function commandHandler($cmd, $args, $issuer, $alias) | |
{ | |
$subCommand = $args[0]; | |
switch ($subCommand) { | |
case "chat": | |
break; | |
case "make": | |
break; | |
case "invite": | |
break; | |
case "leave": | |
break; | |
case "kick": | |
break; | |
} | |
} | |
public function __destruct() | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment