Skip to content

Instantly share code, notes, and snippets.

@MinecrafterJPN
Created April 3, 2014 09:56
Show Gist options
  • Save MinecrafterJPN/9951768 to your computer and use it in GitHub Desktop.
Save MinecrafterJPN/9951768 to your computer and use it in GitHub Desktop.
<?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