mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-21 03:33:23 +00:00
69 lines
1.3 KiB
Java
69 lines
1.3 KiB
Java
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.MortarCommand;
|
|
import com.volmit.iris.util.MortarSender;
|
|
|
|
public class CommandIrisObject extends MortarCommand
|
|
{
|
|
@Command
|
|
private CommandIrisObjectWand wand;
|
|
|
|
@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 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]";
|
|
}
|
|
}
|