mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Actual command tests
This commit is contained in:
parent
482ca5ed15
commit
bc3aaa94de
@ -140,7 +140,12 @@ public class CommandIrisPregen extends MortarCommand {
|
|||||||
}
|
}
|
||||||
World world = Bukkit.getWorld(args[1]);
|
World world = Bukkit.getWorld(args[1]);
|
||||||
try {
|
try {
|
||||||
new Pregenerator(world, getVal(args[0]) * 2);
|
new PregeneratorJob(PregenTask
|
||||||
|
.builder()
|
||||||
|
.center(new Position2(0, 0))
|
||||||
|
.radius(getVal(args[0]))
|
||||||
|
.build(),
|
||||||
|
new PaperOrMedievalPregenMethod(world, 16));
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
Iris.reportError(e);
|
Iris.reportError(e);
|
||||||
sender.sendMessage("Invalid argument in command");
|
sender.sendMessage("Invalid argument in command");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user