mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-01-02 22:02:23 +00:00
Conversion support for EWG and Schematics
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.volmit.iris.command;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.gen.v2.TestGen;
|
||||
import com.volmit.iris.util.Command;
|
||||
import com.volmit.iris.util.MortarCommand;
|
||||
import com.volmit.iris.util.MortarSender;
|
||||
@@ -59,11 +58,11 @@ public class CommandIris extends MortarCommand
|
||||
@Override
|
||||
public boolean handle(MortarSender sender, String[] args)
|
||||
{
|
||||
if(args.length == 1 && args[0].equalsIgnoreCase("test!"))
|
||||
{
|
||||
TestGen.gen(sender.player());
|
||||
return true;
|
||||
}
|
||||
// if(args.length == 1 && args[0].equalsIgnoreCase("test!"))
|
||||
// {
|
||||
// TestGen.gen(sender.player());
|
||||
// return true;
|
||||
// }
|
||||
|
||||
sender.sendMessage("Iris v" + Iris.instance.getDescription().getVersion() + " by Volmit Software");
|
||||
printHelp(sender);
|
||||
|
||||
@@ -49,6 +49,9 @@ public class CommandIrisStudio extends MortarCommand
|
||||
|
||||
@Command
|
||||
private CommandIrisStudioTP tp;
|
||||
|
||||
@Command
|
||||
private CommandIrisStudioConvert convert;
|
||||
|
||||
public CommandIrisStudio()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.volmit.iris.command;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.IrisSettings;
|
||||
import com.volmit.iris.util.MortarCommand;
|
||||
import com.volmit.iris.util.MortarSender;
|
||||
|
||||
public class CommandIrisStudioConvert extends MortarCommand
|
||||
{
|
||||
public CommandIrisStudioConvert()
|
||||
{
|
||||
super("convert", "cvt");
|
||||
requiresPermission(Iris.perm.studio);
|
||||
setDescription("Convert .ewg schematics into Iris (.iob) files");
|
||||
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;
|
||||
}
|
||||
|
||||
Iris.convert.check(sender);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getArgsUsage()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user