summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/api/ICommandHandler.java
blob: 8867f83d4cb4fb8fb45d39752705266083862c66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package net.ess3.api;

import java.util.Map;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabExecutor;
import org.bukkit.plugin.Plugin;


public interface ICommandHandler extends IReload, TabExecutor
{
	/**
	 * Returns a map of disabled commands and the alternate command found
	 * String one is the name of the disabled command
	 * String two is the alternate that was found
	 * @return
	 */
	Map<String, String> disabledCommands();

	/**
	 *
	 * @param plugin the plugin to add
	 */
	void removePlugin(Plugin plugin);

	/**
	 *
	 * @param plugin the plugin to remove
	 */
	void addPlugin(Plugin plugin);

	/**
	 *
	 * @param sender
	 * @param commandLabel
	 * @param exception
	 */
	void showCommandError(CommandSender sender, String commandLabel, Throwable exception);
}