Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
Made /butcher print the radius it uses and added an "all" parameter.
Dieser Commit ist enthalten in:
Ursprung
cacf2cabe2
Commit
0bc9369cc8
@ -370,9 +370,14 @@ public class UtilityCommands {
|
|||||||
|
|
||||||
final int radius;
|
final int radius;
|
||||||
|
|
||||||
if(args.argsLength() > 0){
|
if (args.argsLength() > 0) {
|
||||||
|
if (args.getString(0).equals("all")) {
|
||||||
|
radius = -1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
radius = Math.max(1, args.getInteger(0));
|
radius = Math.max(1, args.getInteger(0));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
radius = config.butcherDefaultRadius;
|
radius = config.butcherDefaultRadius;
|
||||||
}
|
}
|
||||||
@ -395,7 +400,10 @@ public class UtilityCommands {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (radius < 0)
|
||||||
player.print("Killed " + killed + " mobs.");
|
player.print("Killed " + killed + " mobs.");
|
||||||
|
else
|
||||||
|
player.print("Killed " + killed + " mobs in a radius of "+radius+".");
|
||||||
}
|
}
|
||||||
|
|
||||||
public class FlagContainer {
|
public class FlagContainer {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren