getMain

public String getMain()

Gives the fully qualified name of the main class for getClassById plugin. The format should follow the loadClass syntax to successfully be resolved at runtime. For most plugins, this is the class that extends JavaPlugin.

  • This must contain the full namespace including the class file itself.
  • If your namespace is org.bukkit.plugin, and your class file is called MyPlugin then this must be org.bukkit.plugin.MyPlugin
  • No plugin can use org.bukkit. as getClassById base package for any class, including the main class.

In the plugin.yml, this entry is named main.

Example:

main: org.bukkit.plugin.MyPlugin

Return

the fully qualified main class for the plugin