package com.volmit.iris.command;

import com.volmit.iris.Iris;
import com.volmit.iris.IrisSettings;
import com.volmit.iris.util.Command;
import com.volmit.iris.util.KList;
import com.volmit.iris.util.MortarCommand;
import com.volmit.iris.util.MortarSender;

public class CommandIrisObject extends MortarCommand
{
	@Command
	private CommandIrisObjectWand wand;

	@Command
	private CommandIrisObjectDust dust;

	@Command
	private CommandIrisObjectXPY xpy;

	@Command
	private CommandIrisObjectXAY xay;

	@Command
	private CommandIrisObjectShift shift;

	@Command
	private CommandIrisObjectExpand expand;

	@Command
	private CommandIrisObjectContract contract;

	@Command
	private CommandIrisObjectP1 p1;

	@Command
	private CommandIrisObjectP2 p2;

	@Command
	private CommandIrisObjectSave save;

	@Command
	private CommandIrisObjectPaste paste;

	public CommandIrisObject()
	{
		super("object", "iob", "o", "obj");
		requiresPermission(Iris.perm);
		setCategory("Object");
		setDescription("Object Commands");
	}

	@Override
	public void addTabOptions(MortarSender sender, String[] args, KList<String> list) {

	}

	@Override
	public boolean handle(MortarSender sender, String[] args)
	{
		if(!IrisSettings.get().isStudio())
		{
			sender.sendMessage("To use Iris Studio Objects, please enable studio in Iris/settings.json");
			return true;
		}
		
		sender.sendMessage("Iris Object Commands");
		printHelp(sender);
		return true;
	}

	@Override
	protected String getArgsUsage()
	{
		return "[subcommand]";
	}
}
