Skip to content
Peter Stakoun edited this page Jan 5, 2015 · 1 revision

Installing a Module

Modules for MAI take the form of java .class files that are inserted alongside MAI and its default modules in the MAI .jar file. Open the MAI jar with any file archiver and navigate to "me\pstakoun\mai". This is where you drop the module class.

Creating a Module

Development of MAI modules is a relatively simple process. You will find all the methods needed in your module, and the variables at your disposal, in the Module interface (Module.java). To use this interface, your module must implement it.

Basic module template:

package me.pstakoun.mai;

/**
 * Module description.
 */
public class ModuleName implements Module
{
	@Override
	public void onActivate()
	{
		
	}
	
	@Override
	public void onDeactivate()
	{
		
	}

	@Override
	public String getName()
	{
		return "ModuleName";
	}
	
}
Clone this wiki locally