desc + bootify

This commit is contained in:
CocoTheOwner 2021-08-13 21:58:11 +02:00
parent fc60878c25
commit d0faaf2d53

View File

@ -30,9 +30,9 @@ public class DecIrisStudio implements DecreeExecutor
{ {
@Decree(description = "Open a new studio world", aliases = "o", sync = true) @Decree(description = "Open a new studio world", aliases = "o", sync = true)
public void open( public void open(
@Param(name = "dimension", defaultValue = "overworld", aliases = "dim") @Param(name = "dimension", defaultValue = "overworld", description = "The dimension to open a studio for", aliases = "dim")
IrisDimension dimension, IrisDimension dimension,
@Param(name = "seed", defaultValue = "1337", aliases = "s") @Param(name = "seed", defaultValue = "1337", description = "The seed to generate the studio with", aliases = "s")
long seed) long seed)
{ {
Iris.proj.open(sender(), seed, dimension.getLoadKey()); Iris.proj.open(sender(), seed, dimension.getLoadKey());
@ -46,8 +46,7 @@ public class DecIrisStudio implements DecreeExecutor
return; return;
} }
Iris.proj.getActiveProject().getActiveProvider().getTarget().getWorld().evacuate();
Iris.proj.close(); Iris.proj.close();
sender().sendMessage(C.YELLOW + "Project Closed"); sender().sendMessage(C.GREEN + "Project Closed.");
} }
} }