mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-03 03:46:42 +00:00
Temporary solution to fix Golems being butchered. This includes Iron and snow golems.
This commit is contained in:
@ -346,13 +346,14 @@ public class UtilityCommands {
|
||||
@Command(
|
||||
aliases = { "butcher" },
|
||||
usage = "[radius]",
|
||||
flags = "plan",
|
||||
flags = "plang",
|
||||
desc = "Kill all or nearby mobs",
|
||||
help =
|
||||
"Kills nearby mobs, based on radius, if none is given uses default in configuration.\n" +
|
||||
"Flags:" +
|
||||
" -p also kills pets.\n" +
|
||||
" -n also kills NPCs.\n" +
|
||||
" -g also kills Golems.\n" +
|
||||
" -a also kills animals.\n" +
|
||||
" -l strikes lightning on each killed mob.",
|
||||
min = 0,
|
||||
@ -383,6 +384,10 @@ public class UtilityCommands {
|
||||
if (player.hasPermission("worldedit.butcher.npcs") && (args.hasFlag('n'))) {
|
||||
flags |= KillFlags.NPCS;
|
||||
}
|
||||
|
||||
if (player.hasPermission("worldedit.butcher.golems") && (args.hasFlag('g'))) {
|
||||
flags |= KillFlags.GOLEMS;
|
||||
}
|
||||
|
||||
if (player.hasPermission("worldedit.butcher.animals") && (args.hasFlag('a'))) {
|
||||
flags |= KillFlags.ANIMALS;
|
||||
|
Reference in New Issue
Block a user