heads grouping

This commit is contained in:
Super_ 2019-12-20 19:12:04 -05:00
parent 9167c47c2f
commit ef9f55f7ad
2 changed files with 15 additions and 0 deletions

View File

@ -37,6 +37,11 @@ public class Command_ro extends FreedomCommand
materials.addAll(Groups.SHULKER_BOXES); materials.addAll(Groups.SHULKER_BOXES);
names = "shulker boxes"; names = "shulker boxes";
} }
else if (args[0].equalsIgnoreCase("heads"))
{
materials.addAll(Groups.HEADS);
names = "heads";
}
else else
{ {
for (String materialName : StringUtils.split(args[0], ",")) for (String materialName : StringUtils.split(args[0], ","))

View File

@ -160,4 +160,14 @@ public class Groups
Material.ZOMBIE_HORSE_SPAWN_EGG, Material.ZOMBIE_HORSE_SPAWN_EGG,
Material.ZOMBIE_PIGMAN_SPAWN_EGG, Material.ZOMBIE_PIGMAN_SPAWN_EGG,
Material.ZOMBIE_VILLAGER_SPAWN_EGG); Material.ZOMBIE_VILLAGER_SPAWN_EGG);
public static final List<Material> HEADS = Arrays.asList(
Material.CREEPER_HEAD,
Material.CREEPER_WALL_HEAD,
Material.DRAGON_HEAD,
Material.DRAGON_WALL_HEAD,
Material.PLAYER_HEAD,
Material.PLAYER_WALL_HEAD,
Material.ZOMBIE_HEAD,
Material.ZOMBIE_WALL_HEAD);
} }