mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-20 19:22:48 +00:00
35 lines
721 B
Java
35 lines
721 B
Java
package com.volmit.iris.command;
|
|
|
|
import com.volmit.iris.Iris;
|
|
import com.volmit.iris.util.MortarCommand;
|
|
import com.volmit.iris.util.MortarSender;
|
|
|
|
public class CommandIrisStudioOpen extends MortarCommand
|
|
{
|
|
public CommandIrisStudioOpen()
|
|
{
|
|
super("open", "o");
|
|
requiresPermission(Iris.perm.studio);
|
|
setDescription("Create a new temporary world to design a dimension.");
|
|
setCategory("Studio");
|
|
}
|
|
|
|
@Override
|
|
public boolean handle(MortarSender sender, String[] args)
|
|
{
|
|
if(args.length != 1)
|
|
{
|
|
sender.sendMessage("/iris std open <DIMENSION> (file name without .json)");
|
|
}
|
|
|
|
Iris.proj.open(sender, args[0]);
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
protected String getArgsUsage()
|
|
{
|
|
return "[dimension]";
|
|
}
|
|
}
|