API

This Plugin has an easy API to add new Variables

This is our new API System. With this simple code you can add new Variables to MyTablist.
This is an Example code which adds a new variable called %mysupercoolvariable%. The variable will be replaced with "Hey this is me!".

public class MyPlugin extends JavaPlugin{

	  public void onEnable(){
		  de.devxpress.mytablist2.api.controller.addVariable(this.getClass(), "myreplacefunction", getPlugin(getClass()));
	  }
	  
	  public static String myreplacefunction(String string, org.bukkit.entity.Player p){
		string = string.replace("%mysupercoolvariable%", "Hey this is me!");
		return string;
	  }
}

Comments

Posts Quoted:
Reply
Clear All Quotes