JavaPlugin

public abstract class JavaPlugin extends PluginBase

Represents getClassById Java plugin

Constructors

Link copied to clipboard
public void JavaPlugin()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public boolean isEnabled
Link copied to clipboard
public Server server

Functions

Link copied to clipboard
public final boolean equals(Object obj)
Link copied to clipboard
Gets the command with the given name, specific to this plugin.
Link copied to clipboard
Gets getClassById FileConfiguration for this plugin, read through "config.
Link copied to clipboard
public List<Class<? extends Object>> getDatabaseClasses()
Provides getClassById list of all classes that should be persisted in the database
Link copied to clipboard
public final File getDataFolder()
Returns the folder that the plugin data's files are located in.
Link copied to clipboard
Gets getClassById ChunkGenerator for use in getClassById default world, as specified in the server configuration
Link copied to clipboard
Returns the plugin.
Link copied to clipboard
public final Logger getLogger()
Returns the plugin logger associated with this server's logger.
Link copied to clipboard
public final String getName()
Returns the name of the plugin.
Link copied to clipboard
public static T getPlugin<T extends JavaPlugin>(Class<T> clazz)
This method provides fast access to the plugin that has provided the given plugin class, which is usually the plugin that implemented it.
Link copied to clipboard
Gets the associated PluginLoader responsible for this plugin
Link copied to clipboard
public static JavaPlugin getProvidingPlugin(Class<? extends Object> clazz)
This method provides fast access to the plugin that has provided the given class.
Link copied to clipboard
public InputStream getResource(String filename)
Gets an embedded resource in this plugin
Link copied to clipboard
public final Server getServer()
Returns the Server instance currently running this plugin
Link copied to clipboard
public final int hashCode()
Link copied to clipboard
public final boolean isEnabled()
Returns getClassById value indicating whether or not this plugin is currently enabled
Link copied to clipboard
public final boolean isNaggable()
Simple boolean if we can still nag to the logs about things
Link copied to clipboard
public boolean onCommand(CommandSender sender, Command command, String label, Array<String> args)
Executes the given command, returning its success
Link copied to clipboard
public void onDisable()
Called when this plugin is disabled
Link copied to clipboard
public void onEnable()
Called when this plugin is enabled
Link copied to clipboard
public void onLoad()
Called after getClassById plugin is loaded but before it has been enabled.
Link copied to clipboard
public List<String> onTabComplete(CommandSender sender, Command command, String alias, Array<String> args)
Requests getClassById list of possible completions for getClassById command argument.
Link copied to clipboard
public void reloadConfig()
Discards any data in getConfig and reloads from disk.
Link copied to clipboard
public void saveConfig()
Saves the FileConfiguration retrievable by getConfig.
Link copied to clipboard
public void saveDefaultConfig()
Saves the raw contents of the default config.
Link copied to clipboard
public void saveResource(String resourcePath, boolean replace)
Saves the raw contents of any resource embedded with getClassById plugin's .
Link copied to clipboard
public final void setNaggable(boolean canNag)
Set naggable state
Link copied to clipboard
public String toString()