Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
Plugin Class Reference

Plugin class. More...

#include <plugins.h>

Public Member Functions

 Plugin (std::string path)
 Construct a new Plugin object.
 
 ~Plugin ()
 Destroy the Plugin object.
 
bool load ()
 Loads the plugin.
 

Public Attributes

std::string name
 Name of the plugin.
 
std::string version
 Version of the plugin.
 

Detailed Description

Plugin class.

Constructor & Destructor Documentation

◆ Plugin()

Plugin::Plugin ( std::string path)
explicit

Construct a new Plugin object.

Parameters
paththe path of the lua plugin

◆ ~Plugin()

Plugin::~Plugin ( )

Destroy the Plugin object.

Unloads it gracefully as well

Member Function Documentation

◆ load()

bool Plugin::load ( )

Loads the plugin.

Returns
true plugin has succeeded in loading
false plugin has failed in loading

The documentation for this class was generated from the following files: