mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
heads grouping
This commit is contained in:
parent
9167c47c2f
commit
ef9f55f7ad
@ -37,6 +37,11 @@ public class Command_ro extends FreedomCommand
|
||||
materials.addAll(Groups.SHULKER_BOXES);
|
||||
names = "shulker boxes";
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("heads"))
|
||||
{
|
||||
materials.addAll(Groups.HEADS);
|
||||
names = "heads";
|
||||
}
|
||||
else
|
||||
{
|
||||
for (String materialName : StringUtils.split(args[0], ","))
|
||||
|
@ -160,4 +160,14 @@ public class Groups
|
||||
Material.ZOMBIE_HORSE_SPAWN_EGG,
|
||||
Material.ZOMBIE_PIGMAN_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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user