this.player.sendMessage(ChatColor.RED + "Invalid input.");
return false;
}
if (this.myBrushes.containsKey(args[0]))
{
<BUG>if (this.brushTools.containsKey(this.player.getItemInHand().getType()))
{
final BrushTool brushTool = this.brushTools.get(this.player.getItemInHand().getType());
brushTool.setBrush(Brushes.getNewSniperBrushInstance(args[0]));</BUG>
}

this.player.sendMessage(ChatColor.RED + "Invalid input.");
return false;
}
if (this.myBrushes.containsKey(args[0]))
{
ItemStack itemStackInHand = this.player.getItemInHand();
Material itemInHand = itemStackInHand == null ? null : itemStackInHand.getType();
if (itemInHand != null && this.brushTools.containsKey(itemInHand))
{
final BrushTool brushTool = this.brushTools.get(itemInHand);
brushTool.setBrush(Brushes.getNewSniperBrushInstance(args[0]));
}
