Fix no structure specified error

This commit is contained in:
BuildTools 2020-10-27 13:23:19 +01:00
parent 125a89b5f9
commit 672a66695e

View File

@ -34,6 +34,11 @@ public class CommandIrisStructureOpen extends MortarCommand
return true; return true;
} }
if(args.length == 0){
sender.sendMessage("Please specify the structure you wish to load");
return true;
}
Player p = sender.player(); Player p = sender.player();
IrisStructure structure = Iris.globaldata.getStructureLoader().load(args[0]); IrisStructure structure = Iris.globaldata.getStructureLoader().load(args[0]);