mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
77 lines
1.4 KiB
Java
77 lines
1.4 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 CommandIrisStudio extends MortarCommand
|
|
{
|
|
@Command
|
|
private CommandIrisStudioCreate create;
|
|
|
|
@Command
|
|
private CommandIrisStudioOpen open;
|
|
|
|
@Command
|
|
private CommandIrisStudioSummon summon;
|
|
|
|
@Command
|
|
private CommandIrisStudioClose close;
|
|
|
|
@Command
|
|
private CommandIrisStudioPackage pkg;
|
|
|
|
@Command
|
|
private CommandIrisStudioUpdate update;
|
|
|
|
@Command
|
|
private CommandIrisStudioMap map;
|
|
|
|
@Command
|
|
private CommandIrisStudioList list;
|
|
|
|
@Command
|
|
private CommandIrisStudioGoto got0;
|
|
|
|
@Command
|
|
private CommandIrisStudioEditBiome ebiome;
|
|
|
|
@Command
|
|
private CommandIrisStudioHotload hotload;
|
|
|
|
@Command
|
|
private CommandIrisStudioExplorer exp;
|
|
|
|
@Command
|
|
private CommandIrisStudioLoot loot;
|
|
|
|
public CommandIrisStudio()
|
|
{
|
|
super("studio", "std");
|
|
requiresPermission(Iris.perm.studio);
|
|
setCategory("Studio");
|
|
}
|
|
|
|
@Override
|
|
public boolean handle(MortarSender sender, String[] args)
|
|
{
|
|
if(!IrisSettings.get().isStudio())
|
|
{
|
|
sender.sendMessage("To use Iris Studio, please enable studio in Iris/settings.json");
|
|
return true;
|
|
}
|
|
|
|
sender.sendMessage("Iris Studio Commands");
|
|
printHelp(sender);
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
protected String getArgsUsage()
|
|
{
|
|
return "[subcommand]";
|
|
}
|
|
}
|