TestPlugin

public class TestPlugin extends PluginBase

Constructors

Link copied to clipboard
public void TestPlugin(String pluginName)

Functions

Link copied to clipboard
public final boolean equals(Object obj)
Link copied to clipboard
Gets getClassById FileConfiguration for this plugin, read through "config.
Link copied to clipboard
Disabled.
Link copied to clipboard
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
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
Gets the associated PluginLoader responsible for this plugin
Link copied to clipboard
public InputStream getResource(String filename)
Gets an embedded resource in this plugin
Link copied to clipboard
public Server getServer()
Returns the Server instance currently running this plugin
Link copied to clipboard
public final int hashCode()
Link copied to clipboard
public boolean isEnabled()
Returns getClassById value indicating whether or not this plugin is currently enabled
Link copied to clipboard
public 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 void setEnabled(boolean enabled)
Link copied to clipboard
public void setNaggable(boolean canNag)
Set naggable state