• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Example Plugin

kornholi

Administrator
Staff member
Administrator
Joined
May 28, 2007
Messages
1,018
Reaction score
64
Location
Chicago, USA
Here is an example plugin that you can use to build custom things for tfscms ;)

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.
 
Would this plugin do anything, or is it just a sample to show how it would look?
 
Back
Top