Merge korikisulda's butcher brush.

Additionally made it work with //butcher flags (added as an argument)
as well as respecting the max butcher radius if the player has the permission.
This commit is contained in:
Wizjany
2013-01-19 09:33:08 -05:00
parent d78bbc4f68
commit e5d34a9d2c
3 changed files with 101 additions and 2 deletions

View File

@@ -402,6 +402,7 @@ public class UtilityCommands {
flags.or(KillFlags.ANIMALS , args.hasFlag('a'), "worldedit.butcher.animals");
flags.or(KillFlags.AMBIENT , args.hasFlag('b'), "worldedit.butcher.ambient");
flags.or(KillFlags.WITH_LIGHTNING, args.hasFlag('l'), "worldedit.butcher.lightning");
// If you add flags here, please add them to com.sk89q.worldedit.tools.brushes.ButcherBrush as well
int killed;
if (player.isPlayer()) {
@@ -420,7 +421,7 @@ public class UtilityCommands {
}
}
public class FlagContainer {
public static class FlagContainer {
private final LocalPlayer player;
public int flags = 0;
public FlagContainer(LocalPlayer player) {