Here is an example plugin that you can use to build custom things for tfscms
It does not show any use of otserv related things (acc/player/guild), as those are not finished yet. I will post updates here.
Code:
class testPlugin
{
private $base;
public $pluginName = 'testPlugin';
public $flags = PFLAG_COMMUNITY; // every community contributed plguin needs to have a community flag..
public function __construct() {}
public function loadBaseObject(&$base)
{
$this->base = &$base;
}
public function onAttach() {}
public function onLog()
{
// last log entry: $this->base->lastLogEntry
}
public function onDetach() {}
}
It does not show any use of otserv related things (acc/player/guild), as those are not finished yet. I will post updates here.