mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-06-25 23:40:58 +00:00
9a23f806fe
Gradle is better than Maven, don't @ me. okay but actually it's [faster](https://www.youtube.com/watch?v=atuFSv2bLa8&feature=youtu.be&t=77), compiles and tests in parallel more efficiently, and more epic stuff).
30 lines
1 KiB
Java
30 lines
1 KiB
Java
package com.earth2me.essentials.commands;
|
|
|
|
import com.earth2me.essentials.CommandSource;
|
|
import com.earth2me.essentials.IEssentialsModule;
|
|
import com.earth2me.essentials.User;
|
|
import net.ess3.api.IEssentials;
|
|
import org.bukkit.Server;
|
|
import org.bukkit.command.Command;
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import java.util.List;
|
|
|
|
public interface IEssentialsCommand {
|
|
String getName();
|
|
|
|
void run(Server server, User user, String commandLabel, Command cmd, String[] args) throws Exception;
|
|
|
|
void run(Server server, CommandSource sender, String commandLabel, Command cmd, String[] args) throws Exception;
|
|
|
|
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);
|
|
|
|
void setEssentials(IEssentials ess);
|
|
|
|
void setEssentialsModule(IEssentialsModule module);
|
|
|
|
void showError(CommandSender sender, Throwable throwable, String commandLabel);
|
|
}
|