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