mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Allow consoles to open the vision gui
This commit is contained in:
parent
c1a6ca80f5
commit
d343cd4f08
@ -419,12 +419,18 @@ public class CommandStudio implements DecreeExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Decree(description = "Render a world map (External GUI)", aliases = "render")
|
@Decree(description = "Render a world map (External GUI)", aliases = "render")
|
||||||
public void map() {
|
public void map(
|
||||||
if (noStudio()) return;
|
@Param(name = "world", description = "The world to open the generator for", contextual = true)
|
||||||
|
World world
|
||||||
|
) {
|
||||||
if (noGUI()) return;
|
if (noGUI()) return;
|
||||||
|
|
||||||
VisionGUI.launch(engine(), 0);
|
if (!IrisToolbelt.isIrisWorld(world)) {
|
||||||
|
sender().sendMessage(C.RED + "You need to be in or specify an Iris-generated world!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
VisionGUI.launch(IrisToolbelt.access(world).getEngine(), 0);
|
||||||
sender().sendMessage(C.GREEN + "Opening map!");
|
sender().sendMessage(C.GREEN + "Opening map!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user