2016-03-14 19:00:03 -07:00
|
|
|
package WayofTime.bloodmagic.command;
|
|
|
|
|
2019-02-01 01:46:02 +01:00
|
|
|
import WayofTime.bloodmagic.command.sub.*;
|
2016-03-14 19:00:03 -07:00
|
|
|
import net.minecraft.command.ICommandSender;
|
2017-01-01 21:43:34 -08:00
|
|
|
import net.minecraftforge.server.command.CommandTreeBase;
|
2019-02-01 01:46:02 +01:00
|
|
|
import net.minecraftforge.server.command.CommandTreeHelp;
|
2016-03-14 19:00:03 -07:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public class CommandBloodMagic extends CommandTreeBase {
|
2019-02-01 01:46:02 +01:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public CommandBloodMagic() {
|
2017-01-01 21:43:34 -08:00
|
|
|
addSubcommand(new SubCommandBind());
|
|
|
|
addSubcommand(new SubCommandNetwork());
|
|
|
|
addSubcommand(new SubCommandOrb());
|
2019-02-01 01:46:02 +01:00
|
|
|
addSubcommand(new SubCommandRitual());
|
|
|
|
addSubcommand(new SubCommandTeleposer());
|
|
|
|
addSubcommand(new CommandTreeHelp(this));
|
2016-03-14 19:00:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-08-15 21:30:48 -07:00
|
|
|
public String getName() {
|
2017-01-01 21:43:34 -08:00
|
|
|
return "bloodmagic";
|
2016-03-14 19:00:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-08-15 21:30:48 -07:00
|
|
|
public String getUsage(ICommandSender sender) {
|
2017-01-01 21:43:34 -08:00
|
|
|
return "/bloodmagic help";
|
2016-03-14 19:00:03 -07:00
|
|
|
}
|
|
|
|
|
2017-04-03 17:03:46 -07:00
|
|
|
@Override
|
2017-08-15 21:30:48 -07:00
|
|
|
public int getRequiredPermissionLevel() {
|
2017-04-03 17:03:46 -07:00
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
|
2016-03-14 19:00:03 -07:00
|
|
|
}
|