2011-03-19 22:39:51 +00:00
|
|
|
package com.earth2me.essentials.commands;
|
|
|
|
|
2013-10-16 19:59:39 +00:00
|
|
|
import com.earth2me.essentials.CommandSource;
|
2011-12-06 12:41:29 +00:00
|
|
|
import com.earth2me.essentials.IEssentialsModule;
|
2011-06-01 10:40:12 +00:00
|
|
|
import com.earth2me.essentials.User;
|
2013-10-11 02:44:41 +00:00
|
|
|
import net.ess3.api.IEssentials;
|
2011-11-18 17:42:26 +00:00
|
|
|
import org.bukkit.Server;
|
2011-03-19 22:39:51 +00:00
|
|
|
import org.bukkit.command.Command;
|
2017-04-14 01:46:43 +00:00
|
|
|
import java.util.List;
|
2011-03-19 22:39:51 +00:00
|
|
|
|
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
public interface IEssentialsCommand {
|
|
|
|
String getName();
|
2011-03-19 22:39:51 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
void run(Server server, User user, String commandLabel, Command cmd, String[] args) throws Exception;
|
2011-03-19 22:39:51 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
void run(Server server, CommandSource sender, String commandLabel, Command cmd, String[] args) throws Exception;
|
2011-11-21 01:55:26 +00:00
|
|
|
|
2017-04-14 01:46:43 +00:00
|
|
|
List<String> tabComplete(Server server, User user, String commandLabel, Command cmd, String[] args);
|
|
|
|
|
|
|
|
List<String> tabComplete(Server server, CommandSource sender, String commandLabel, Command cmd, String[] args);
|
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
void setEssentials(IEssentials ess);
|
2011-12-06 12:41:29 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
void setEssentialsModule(IEssentialsModule module);
|
2011-03-19 22:39:51 +00:00
|
|
|
}
|