Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.plugin.PluginBase Class Referenceabstract
Inheritance diagram for org.bukkit.plugin.PluginBase:
org.bukkit.plugin.Plugin org.bukkit.command.TabExecutor org.bukkit.command.TabCompleter org.bukkit.command.CommandExecutor org.bukkit.plugin.java.JavaPlugin org.bukkit.plugin.TestPlugin

Public Member Functions

final int hashCode ()
 
final boolean equals (Object obj)
 
final String getName ()
 
- Public Member Functions inherited from org.bukkit.plugin.Plugin
File getDataFolder ()
 
PluginDescriptionFile getDescription ()
 
FileConfiguration getConfig ()
 
InputStream getResource (String filename)
 
void saveConfig ()
 
void saveDefaultConfig ()
 
void saveResource (String resourcePath, boolean replace)
 
void reloadConfig ()
 
PluginLoader getPluginLoader ()
 
Server getServer ()
 
boolean isEnabled ()
 
void onDisable ()
 
void onLoad ()
 
void onEnable ()
 
boolean isNaggable ()
 
void setNaggable (boolean canNag)
 
EbeanServer getDatabase ()
 
ChunkGenerator getDefaultWorldGenerator (String worldName, String id)
 
Logger getLogger ()
 
- Public Member Functions inherited from org.bukkit.command.TabCompleter
List< String > onTabComplete (CommandSender sender, Command command, String alias, String[] args)
 
- Public Member Functions inherited from org.bukkit.command.CommandExecutor
boolean onCommand (CommandSender sender, Command command, String label, String[] args)
 

Detailed Description

Represents a base Plugin

Extend this class if your plugin is not a org.bukkit.plugin.java.JavaPlugin

Definition at line 9 of file PluginBase.java.

Member Function Documentation

final String org.bukkit.plugin.PluginBase.getName ( )

Returns the name of the plugin.

This should return the bare name of the plugin and should be used for comparison.

Returns
name of the plugin

Implements org.bukkit.plugin.Plugin.

Definition at line 29 of file PluginBase.java.

References org.bukkit.plugin.Plugin.getDescription(), and org.bukkit.plugin.PluginDescriptionFile.getName().

Referenced by org.bukkit.plugin.java.JavaPlugin.initialize().

29  {
30  return getDescription().getName();
31  }
PluginDescriptionFile getDescription()

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