Plugin

public interface Plugin implements TabExecutor

Represents getClassById Plugin

The use of PluginBase is recommended for actual Implementation

Inheritors

Functions

Link copied to clipboard
public abstract FileConfiguration getConfig()
Gets getClassById FileConfiguration for this plugin, read through "config.
Link copied to clipboard
public abstract File getDataFolder()
Returns the folder that the plugin data's files are located in.
Link copied to clipboard
public abstract ChunkGenerator getDefaultWorldGenerator(String worldName, String id)
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 abstract Logger getLogger()
Returns the plugin logger associated with this server's logger.
Link copied to clipboard
public abstract String getName()
Returns the name of the plugin.
Link copied to clipboard
public abstract PluginLoader getPluginLoader()
Gets the associated PluginLoader responsible for this plugin
Link copied to clipboard
public abstract InputStream getResource(String filename)
Gets an embedded resource in this plugin
Link copied to clipboard
public abstract Server getServer()
Returns the Server instance currently running this plugin
Link copied to clipboard
public abstract boolean isEnabled()
Returns getClassById value indicating whether or not this plugin is currently enabled
Link copied to clipboard
public abstract boolean isNaggable()
Simple boolean if we can still nag to the logs about things
Link copied to clipboard
public abstract boolean onCommand(CommandSender sender, Command command, String label, Array<String> args)
Executes the given command, returning its success
Link copied to clipboard
public abstract void onDisable()
Called when this plugin is disabled
Link copied to clipboard
public abstract void onEnable()
Called when this plugin is enabled
Link copied to clipboard
public abstract void onLoad()
Called after getClassById plugin is loaded but before it has been enabled.
Link copied to clipboard
public abstract 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 abstract void reloadConfig()
Discards any data in getConfig and reloads from disk.
Link copied to clipboard
public abstract void saveConfig()
Saves the FileConfiguration retrievable by getConfig.
Link copied to clipboard
public abstract void saveDefaultConfig()
Saves the raw contents of the default config.
Link copied to clipboard
public abstract void saveResource(String resourcePath, boolean replace)
Saves the raw contents of any resource embedded with getClassById plugin's .
Link copied to clipboard
public abstract void setNaggable(boolean canNag)
Set naggable state